2026-01-29 18:27:33 +00:00
|
|
|
// Package gocmd provides Go development commands with enhanced output.
|
|
|
|
|
//
|
|
|
|
|
// Note: Package named gocmd because 'go' is a reserved keyword.
|
|
|
|
|
//
|
|
|
|
|
// Commands:
|
|
|
|
|
// - test: Run tests with colour-coded coverage summary
|
|
|
|
|
// - cov: Run tests with detailed coverage reports (HTML, thresholds)
|
|
|
|
|
// - fmt: Format code using goimports or gofmt
|
|
|
|
|
// - lint: Run golangci-lint
|
|
|
|
|
// - install: Install binary to $GOPATH/bin
|
|
|
|
|
// - mod: Module management (tidy, download, verify, graph)
|
|
|
|
|
// - work: Workspace management (sync, init, use)
|
|
|
|
|
//
|
|
|
|
|
// Sets MACOSX_DEPLOYMENT_TARGET to suppress linker warnings on macOS.
|
refactor(cli): restructure cmd packages into subdirectories
- Move CLI commands into subdirectories matching command hierarchy:
dev/, go/, php/, build/, ci/, sdk/, pkg/, vm/, docs/, setup/, doctor/, test/, ai/
- Create shared/ package for common styles and utilities
- Add new `core ai` root command with claude subcommand
- Update package declarations and imports across all files
- Create commands.go entry points for each package
- Remove GUI-related files (moved to core-gui repo)
This makes the filesystem structure match the CLI command structure,
improving context capture and code organization.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 18:02:43 +00:00
|
|
|
package gocmd
|
|
|
|
|
|
2026-01-30 00:47:54 +00:00
|
|
|
import "github.com/spf13/cobra"
|
refactor(cli): restructure cmd packages into subdirectories
- Move CLI commands into subdirectories matching command hierarchy:
dev/, go/, php/, build/, ci/, sdk/, pkg/, vm/, docs/, setup/, doctor/, test/, ai/
- Create shared/ package for common styles and utilities
- Add new `core ai` root command with claude subcommand
- Update package declarations and imports across all files
- Create commands.go entry points for each package
- Remove GUI-related files (moved to core-gui repo)
This makes the filesystem structure match the CLI command structure,
improving context capture and code organization.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 18:02:43 +00:00
|
|
|
|
|
|
|
|
// AddCommands registers the 'go' command and all subcommands.
|
2026-01-30 00:47:54 +00:00
|
|
|
func AddCommands(root *cobra.Command) {
|
|
|
|
|
AddGoCommands(root)
|
refactor(cli): restructure cmd packages into subdirectories
- Move CLI commands into subdirectories matching command hierarchy:
dev/, go/, php/, build/, ci/, sdk/, pkg/, vm/, docs/, setup/, doctor/, test/, ai/
- Create shared/ package for common styles and utilities
- Add new `core ai` root command with claude subcommand
- Update package declarations and imports across all files
- Create commands.go entry points for each package
- Remove GUI-related files (moved to core-gui repo)
This makes the filesystem structure match the CLI command structure,
improving context capture and code organization.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 18:02:43 +00:00
|
|
|
}
|