-
Notifications
You must be signed in to change notification settings - Fork 130
refactor generated command & subcommand boilerplate #14
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
base: main
Are you sure you want to change the base?
Conversation
|
@johnSchnake please review |
jpmcb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there - thanks for providing this.
Overall, looks good but I'm wondering if we want to do some work to define the recommended approach in our docs and examples before we go forward with merging this.
I like the idea of removing the init chunks
John S. has good eyes on this too, so would also like his input.
I think @marckhouzam can give some recommendation here too as to what Helm does.
|
This PR is being marked as stale due to a long period of inactivity |
|
Still haven't gotten around to this one. Sorry. |
|
No worries!!!! We can mark this for post v1.5.0 if that makes sense? |
|
This PR is being marked as stale due to a long period of inactivity |
|
blub |
|
This PR is being marked as stale due to a long period of inactivity |
|
This PR is being marked as stale due to a long period of inactivity |
|
This PR is being marked as stale due to a long period of inactivity |
|
This PR is being marked as stale due to a long period of inactivity |
|
This PR is being marked as stale due to a long period of inactivity |
rootCmd.AddCommand(NewSubCommand())inside of the constructorNewRootCmd()which would be quite hard to do with generated code. cobra-cli would need to actually parse generated Go code and append lines at specific locations for that to work with sub commands that are added afterwards.That's way too much work so I did go a slightly easier way.
Might not be the final stage but definitely a step forward.