go-devops/cmd/dev/cmd_api.go
Virgil b7d70883e9 feat(dev): add api test-gen command
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 05:10:56 +00:00

22 lines
487 B
Go

package dev
import (
"dappco.re/go/core/i18n"
"forge.lthn.ai/core/cli/pkg/cli"
)
// addAPICommands adds the 'api' command and its subcommands to the given parent command.
func addAPICommands(parent *cli.Command) {
// Create the 'api' command
apiCmd := &cli.Command{
Use: "api",
Short: i18n.T("cmd.dev.api.short"),
}
parent.AddCommand(apiCmd)
// Add the 'sync' command to 'api'
addSyncCommand(apiCmd)
// Add the 'test-gen' command to 'api'
addTestGenCommand(apiCmd)
}