Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 580 Bytes

HIDDEN_COMMAND.md

File metadata and controls

24 lines (18 loc) · 580 Bytes

Hiding a command from help section

To hide a command and prevent it from appearing in cli's help section,

  1. Add a command, by following this Adding a command doc

  2. Now, add the commands created in step 4 above as an element to hidenCommands variable at cli.go

    var hidenCommands = []string{
        "create test",
        "delete test",
        "list test",
        "describe test",
        "deploy test",
        "destroy test",
    }
  3. Verify,

    go run main.go <verb> --help