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>
31 lines
795 B
Go
31 lines
795 B
Go
//go:build ci
|
|
|
|
// core_ci.go registers commands for the minimal CI/release binary.
|
|
//
|
|
// Build with: go build -tags ci
|
|
//
|
|
// This variant includes only commands needed for CI pipelines:
|
|
// - build: Cross-platform compilation
|
|
// - ci: Release publishing
|
|
// - sdk: API compatibility checks
|
|
// - doctor: Environment verification
|
|
//
|
|
// Use this build to reduce binary size and attack surface in production.
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"github.com/host-uk/core/cmd/build"
|
|
"github.com/host-uk/core/cmd/ci"
|
|
"github.com/host-uk/core/cmd/doctor"
|
|
"github.com/host-uk/core/cmd/sdk"
|
|
"github.com/leaanthony/clir"
|
|
)
|
|
|
|
// registerCommands adds CI/release commands only.
|
|
func registerCommands(app *clir.Cli) {
|
|
build.AddCommands(app)
|
|
ci.AddCommands(app)
|
|
sdk.AddCommands(app)
|
|
doctor.AddCommands(app)
|
|
}
|