Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate only selected interfaces? #47

Open
miko opened this issue Feb 22, 2024 · 0 comments
Open

Generate only selected interfaces? #47

miko opened this issue Feb 22, 2024 · 0 comments

Comments

@miko
Copy link

miko commented Feb 22, 2024

flags:
  -ignore string
        comma separated list of interfaces to ignore

Is it possible to add similar:

flags:
  -include string
        comma separated list of interfaces to generate
  -list
        comma separated list of all defined interfaces  

I would like to have each interface generated in a separate file, so I would call something like:

for interface in `oto -list`; do
  oto -out ./generated/${interface}/${interface}.go -pkg ${interface} -include ${interface}
done

Or is there any other simple method to generate separate files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant