coinbase / mesh-cli

CLI for the Mesh API
Apache License 2.0
155 stars 94 forks source link

Use Cobra Subcommands #28

Open patrick-ogrady opened 4 years ago

patrick-ogrady commented 4 years ago

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.

godcloutier commented 3 years ago

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