Ryan Curtin
1223d49a62
Fixes issue references
2021-12-16 14:39:36 -05:00
Ryan Curtin
ef632ed1e1
Converting cobra to use OneCloudInc/cobra in all cases
2021-12-16 14:27:35 -05:00
Brian Meyers
5cecced576
Use RunE
2019-02-22 15:51:50 -05:00
Brian Meyers
96868d8f05
Only change the CLI tool to use OneCloudInc
2019-02-22 14:20:00 -05:00
Brian Meyers
4b2965f3d6
Fixed tests and added dep
2019-02-22 13:38:36 -05:00
Brian Meyers
b3a45b8407
Allow both persistent and local flags for root vs command. Removed default viper. Allow flags to be set on the rootCmd as well.
2019-02-22 13:19:46 -05:00
Brian Meyers
bcc54ae73f
Custom generator that will generate arguments and flags right from the command line
2019-02-22 13:06:52 -05:00
Brian Meyers
9224a9a8f3
Rename packages to use OneCloud
2019-02-22 12:58:38 -05:00
Nick Miyake
1be1d2841c
Make rootCmd private
...
Update Cobra generator to make rootCmd private rather than
exporting it. Also update examples in README to use the exported
Execute() command rather than referencing unexported rootCmd.
Fixes #556
2017-11-23 08:13:30 +01:00
Tom Elliott
cb731b8983
Specify that parent's name is a variable for clarity. #514
2017-08-15 11:22:12 +05:00
Anthony Fok
9e024b655b
cmd: Refine formatting of included licenses
2017-07-30 02:35:06 -06:00
Anthony Fok
a1b7d3cc4d
cmd: Add a blank line between copyright and license
2017-07-30 02:15:55 -06:00
Albert Nigmatzianov
99ff9334bd
cmd: Add possibility to specify the target package
...
Fix #455
2017-06-07 08:07:48 +02:00
Albert Nigmatzianov
3454e0e28e
cmd: Fix package name when adding command
2017-05-12 12:10:33 +02:00
Albert Nigmatzianov
7bb5276f5f
cmd: Fix panic if cmd ends on dash or underscore
2017-05-05 10:35:27 +02:00
Albert Nigmatzianov
d20925b932
cmd: Small correctives
2017-05-05 10:35:27 +02:00
Albert Nigmatzianov
84cba621a0
cmd: Make detection of $HOME work on all systems
...
Use github.com/mitchellh/go-homedir
Fix #430
2017-05-05 10:35:27 +02:00
Albert Nigmatzianov
6bcf163261
cmd: Validate cmd names
...
Fix #269
2017-05-05 10:35:27 +02:00
Albert Nigmatzianov
0dd1c429a3
cmd: Add more docs
2017-05-05 10:35:27 +02:00
Albert Nigmatzianov
32756eb440
cmd: Rewrite
2017-05-05 10:35:27 +02:00
Sobit Akhmedov
9e39e41fb0
fix typo
2015-11-24 14:46:13 +01:00
Anthony Fok
1e63ad8ed1
Fine-tune the formatting of Cobra’s generated code
2015-11-20 15:28:40 -07:00
spf13
2a6ed7a106
utilize filepath.Join liberally
...
fixes #176
2015-11-06 11:08:12 -05:00
spf13
a7defd47ef
add add command functionality to cobra
2015-10-28 13:43:58 -04:00