Skip to content

Generate only selected interfaces? #47

Description

@miko
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions