cli/cmd/core_ci.go

32 lines
795 B
Go
Raw Normal View History

//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)
}