Currently, the project uses declares `flags` in a separate package, whose values need to be copied to the generator. An alternative approach would be: - Remove flag package - Rename Flags struct to Options - Move Options struct into pkg/generator - Bind flags directly to an Options instance - Have the Generator work directly against Options (to avoid having to copy) - Simplify package path for the generator: https://github.com/kcp-dev/code-generator/pull/1#discussion_r868124210 Note: These options need to be passed down to all the generators.
Currently, the project uses declares
flagsin a separate package, whose values need to be copied to the generator. An alternative approach would be:Note: These options need to be passed down to all the generators.