Skip to content

Refactor generator code #4

Open
@varshaprasad96

Description

@varshaprasad96

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: Clientset wrapper for kcp #1 (comment)

Note: These options need to be passed down to all the generators.

Metadata

Metadata

Assignees

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