docs(cmd/api): add AX usage example to AddAPICommands
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
8149b0abf2
commit
8d92ee29d4
1 changed files with 6 additions and 1 deletions
|
|
@ -8,7 +8,12 @@ func init() {
|
|||
cli.RegisterCommands(AddAPICommands)
|
||||
}
|
||||
|
||||
// AddAPICommands registers the 'api' command group.
|
||||
// AddAPICommands registers the `api` command group.
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// root := &cli.Command{Use: "root"}
|
||||
// api.AddAPICommands(root)
|
||||
func AddAPICommands(root *cli.Command) {
|
||||
apiCmd := cli.NewGroup("api", "API specification and SDK generation", "")
|
||||
root.AddCommand(apiCmd)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue