Update 58 files from forge.lthn.ai/core/go/pkg/cli to forge.lthn.ai/core/cli/pkg/cli. Also fix pre-existing broken imports: cmd/workspace → go-agentic, cmd/dev → self-reference. Resolves circular dependency that caused qa docblock stub in core/go. Co-Authored-By: Virgil <virgil@lethean.io>
22 lines
504 B
Go
22 lines
504 B
Go
package dev
|
|
|
|
import (
|
|
"forge.lthn.ai/core/cli/pkg/cli"
|
|
"forge.lthn.ai/core/go/pkg/i18n"
|
|
)
|
|
|
|
// 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)
|
|
|
|
// TODO: Add the 'test-gen' command to 'api'
|
|
// addTestGenCommand(apiCmd)
|
|
}
|