go-api/cmd/api/cmd.go
Snider 9d35070573 feat: migrate api commands from CLI
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 19:38:14 +00:00

18 lines
390 B
Go

// SPDX-License-Identifier: EUPL-1.2
package api
import "forge.lthn.ai/core/go/pkg/cli"
func init() {
cli.RegisterCommands(AddAPICommands)
}
// AddAPICommands registers the 'api' command group.
func AddAPICommands(root *cli.Command) {
apiCmd := cli.NewGroup("api", "API specification and SDK generation", "")
root.AddCommand(apiCmd)
addSpecCommand(apiCmd)
addSDKCommand(apiCmd)
}