Add comprehensive package-level documentation to all CLI command packages: - cmd/core.go, core_ci.go, core_dev.go: Main CLI entry points - cmd/shared: Lipgloss styles and utility functions - cmd/ai: AI agent task management and Claude integration - cmd/dev: Multi-repo git workflows and GitHub integration - cmd/build, cmd/ci: Build and release automation - cmd/sdk: OpenAPI validation and compatibility - cmd/go: Go development tools with enhanced output - cmd/php: Laravel development, build, and deployment - cmd/docs: Documentation sync across repos - cmd/doctor: Environment validation - cmd/test: Test runner with coverage - cmd/pkg: GitHub package management - cmd/setup: Workspace initialisation - cmd/vm: LinuxKit VM management Each docblock now describes: - Package purpose and commands - Key features and configuration - Package naming notes where relevant (gocmd, testcmd) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
65 lines
1.7 KiB
Go
65 lines
1.7 KiB
Go
//go:build !ci
|
|
|
|
// core_dev.go registers commands for the full development binary.
|
|
//
|
|
// Build with: go build (default)
|
|
//
|
|
// This is the default build variant with all development tools:
|
|
// - dev: Multi-repo git workflows (commit, push, pull, sync)
|
|
// - ai: AI agent task management
|
|
// - go: Go module and build tools
|
|
// - php: Laravel/Composer development tools
|
|
// - build: Cross-platform compilation
|
|
// - ci: Release publishing
|
|
// - sdk: API compatibility checks
|
|
// - pkg: Package management
|
|
// - vm: LinuxKit VM management
|
|
// - docs: Documentation generation
|
|
// - setup: Repository cloning and setup
|
|
// - doctor: Environment health checks
|
|
// - test: Test runner with coverage
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"github.com/host-uk/core/cmd/ai"
|
|
"github.com/host-uk/core/cmd/build"
|
|
"github.com/host-uk/core/cmd/ci"
|
|
"github.com/host-uk/core/cmd/dev"
|
|
"github.com/host-uk/core/cmd/docs"
|
|
"github.com/host-uk/core/cmd/doctor"
|
|
gocmd "github.com/host-uk/core/cmd/go"
|
|
"github.com/host-uk/core/cmd/php"
|
|
"github.com/host-uk/core/cmd/pkg"
|
|
"github.com/host-uk/core/cmd/sdk"
|
|
"github.com/host-uk/core/cmd/setup"
|
|
testcmd "github.com/host-uk/core/cmd/test"
|
|
"github.com/host-uk/core/cmd/vm"
|
|
"github.com/leaanthony/clir"
|
|
)
|
|
|
|
// registerCommands adds all development commands.
|
|
func registerCommands(app *clir.Cli) {
|
|
// Multi-repo workflow
|
|
dev.AddCommands(app)
|
|
|
|
// AI agent tools
|
|
ai.AddCommands(app)
|
|
|
|
// Language tooling
|
|
gocmd.AddCommands(app)
|
|
php.AddCommands(app)
|
|
|
|
// Build and release
|
|
build.AddCommands(app)
|
|
ci.AddCommands(app)
|
|
sdk.AddCommands(app)
|
|
|
|
// Environment management
|
|
pkg.AddCommands(app)
|
|
vm.AddCommands(app)
|
|
docs.AddCommands(app)
|
|
setup.AddCommands(app)
|
|
doctor.AddCommands(app)
|
|
testcmd.AddCommands(app)
|
|
}
|