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

Use Cobra Subcommands #28

Open
patrick-ogrady opened this issue May 22, 2020 · 1 comment
Open

Use Cobra Subcommands #28

patrick-ogrady opened this issue May 22, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@patrick-ogrady
Copy link
Contributor

Is your feature request related to a problem? Please describe.
In the rosetta-cli, we use : to access subcommands instead of Cobra's native handling for this.

Describe the solution you'd like
Use subcommands properly (rosetta-cli view:block -> rosetta-cli view block). This will allow users to run rosetta-cli view -h to print all view child commands.

@patrick-ogrady patrick-ogrady added the enhancement New feature or request label May 22, 2020
@godcloutier
Copy link

I think view:block command:subcommand pattern is better and avoids confusion personally but im used to that pattern so maybe other people will think differently

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

No branches or pull requests

2 participants