cli/internal/variants/minimal.go
Snider 5b2c4eef75 refactor: move CLI entry point to pkg/cli, remove cmd/
Consolidate CLI code into pkg/cli:
- Add pkg/cli/app.go with Main() entry point and completionCmd
- Move build variants to internal/variants/ (avoids import cycle)
- Move i18n-validate tool to internal/tools/
- Update main.go to call cli.Main()
- Remove cmd/ directory entirely

Structure:
- main.go imports internal/variants (triggers command registration)
- main.go calls cli.Main() which runs the CLI
- Build variants: go build, go build -tags ci/php/minimal

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 22:11:35 +00:00

17 lines
400 B
Go

//go:build minimal
// minimal.go imports only core packages for a minimal binary.
//
// Build with: go build -tags minimal
//
// This variant includes only the absolute essentials:
// - doctor: Environment verification
//
// Use this for the smallest possible binary with just health checks.
package variants
import (
// Commands via self-registration
_ "github.com/host-uk/core/pkg/doctor"
)