cli/cmd/core_ci.go
Snider f128f79536 refactor: rename root.go to core.go, commands_*.go to core_*.go
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 18:16:48 +00:00

23 lines
549 B
Go

//go:build ci
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 only CI/release commands for the minimal binary.
// Build with: go build -tags ci
func registerCommands(app *clir.Cli) {
// CI/Release commands only - minimal attack surface
build.AddCommands(app)
ci.AddCommands(app)
sdk.AddCommands(app)
// Doctor for environment verification
doctor.AddCommands(app)
}