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

What about subcommands #1

Closed
crayoned opened this issue Oct 30, 2021 · 2 comments · Fixed by #2
Closed

What about subcommands #1

crayoned opened this issue Oct 30, 2021 · 2 comments · Fixed by #2
Labels
feature New feature or request

Comments

@crayoned
Copy link

I think it would be nice to have subcommands inside of acmd.Command

@cristaloleg
Copy link
Member

Good idea, not sure about api for now. Probably Subcommands []Command field in each Command is a way to solve it, but I don't have real cases, happy to see any examples.

@cristaloleg cristaloleg added the feature New feature or request label Oct 30, 2021
@crayoned
Copy link
Author

Subcommands []Command - looks good.
Usage: If you have multiple domains in your CLI, each has its own commands. For example, there are many commands in the GO command line interface, run, build, install these are single commands. Also there are commands such as tool, mod, etc., which have their own subcommands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants