api/cmd/api/cmd.go
Virgil 8d92ee29d4 docs(cmd/api): add AX usage example to AddAPICommands
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 08:03:24 +00:00

23 lines
474 B
Go

// SPDX-License-Identifier: EUPL-1.2
package api
import "forge.lthn.ai/core/cli/pkg/cli"
func init() {
cli.RegisterCommands(AddAPICommands)
}
// 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)
addSpecCommand(apiCmd)
addSDKCommand(apiCmd)
}