Replace leaanthony/clir with spf13/cobra across all command packages. This provides better subcommand handling, built-in shell completion, and a more widely-used CLI framework. Changes: - Update cmd/core.go with cobra root command and completion support - Convert all subcommand packages to use *cobra.Command - Use init() functions for flag registration instead of inline setup - Maintain all existing functionality and flag behaviors Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
705 B
Go
29 lines
705 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"
|
|
)
|
|
|
|
func init() {
|
|
build.AddCommands(rootCmd)
|
|
ci.AddCommands(rootCmd)
|
|
sdk.AddCommands(rootCmd)
|
|
doctor.AddCommands(rootCmd)
|
|
}
|