COBRA-CLI-ADD(1) | Cobra Manual | COBRA-CLI-ADD(1) |
cobra-cli-add - Add a command to a Cobra Application
cobra add [COMMAND NAME] [OPTIONS]
Add (cobra-cli add) will create a new command, with a license and the appropriate structure for a Cobra-based CLI application, and register it to its parent (default RootCmd).
If you want your command to be public, pass in the command name with an initial uppercase letter.
Example: cobra-cli add server -> resulting in a new cmd/server.go
add, command
Mar 2022 | github.com/spf13/cobra-cli |