oto icon indicating copy to clipboard operation
oto copied to clipboard

Generate only selected interfaces?

Open miko opened this issue 1 year ago • 0 comments

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?

miko avatar Feb 22 '24 15:02 miko