G-Node / gin-cli

Command line client for GIN
https://gin.g-node.org
Other
12 stars 6 forks source link

Better command line argument parsing #184

Closed achilleas-k closed 6 years ago

achilleas-k commented 6 years ago

I changed the command line argument handler to Cobra. It fits much better with the way gin-cli is structured.

This change also gave me the chance to restructure the main file and package. Top level commands are now defined in the gincmd subpackage. Each command is defined in a separate file, making the project easier to navigate. Each command file also defines its own cobra command entry, so help and usage text is localised to the command instead of one central help location.