Skip to content

generation: auto-register generated command #13

@oncilla

Description

@oncilla

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions