Skip to content
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

generation: auto-register generated command #13

Open
oncilla opened this issue Jun 21, 2020 · 0 comments
Open

generation: auto-register generated command #13

oncilla opened this issue Jun 21, 2020 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@oncilla
Copy link
Owner

oncilla commented Jun 21, 2020

When adding a new command, it should be automatically added to its parent command.
The parent can be specified with a flag, the default will be the root command.

This requires parsing and modifying the AST, which is a bit more involved.
https://www.zupzup.org/ast-manipulation-go/ is a nice resource to learn the basics of AST manipulation.

@oncilla oncilla added the help wanted Extra attention is needed label Jun 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant