- Bump dappco.re/go/* deps to v0.8.0-alpha.1 in go.mod (any forge.lthn.ai/core/* paths migrated to canonical dappco.re/go/* form) - Update Go source imports across 55 .go files Co-Authored-By: Athena <athena@lthn.ai>
22 lines
476 B
Go
22 lines
476 B
Go
package dev
|
|
|
|
import (
|
|
"dappco.re/go/i18n"
|
|
"dappco.re/go/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)
|
|
}
|