From 8d92ee29d4bedb4e6ae91707ea4ffb645873148a Mon Sep 17 00:00:00 2001 From: Virgil Date: Thu, 2 Apr 2026 08:03:24 +0000 Subject: [PATCH] docs(cmd/api): add AX usage example to AddAPICommands Co-Authored-By: Virgil --- cmd/api/cmd.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/api/cmd.go b/cmd/api/cmd.go index e0fb419..0dd63cc 100644 --- a/cmd/api/cmd.go +++ b/cmd/api/cmd.go @@ -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)