To hide a command and prevent it from appearing in cli's help section,
-
Add a command, by following this Adding a command doc
-
Now, add the commands created in step 4 above as an element to
hidenCommands
variable at cli.govar hidenCommands = []string{ "create test", "delete test", "list test", "describe test", "deploy test", "destroy test", }
-
Verify,
go run main.go <verb> --help