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>
19 lines
462 B
Go
19 lines
462 B
Go
//go:build php
|
|
|
|
// php.go imports packages for the PHP-only binary.
|
|
//
|
|
// Build with: go build -tags php
|
|
//
|
|
// This variant includes only PHP/Laravel development tools:
|
|
// - php: Laravel/Composer development tools
|
|
// - doctor: Environment verification
|
|
//
|
|
// Use this for PHP-focused workflows without other tooling.
|
|
|
|
package variants
|
|
|
|
import (
|
|
// Commands via self-registration
|
|
_ "github.com/host-uk/core/pkg/doctor"
|
|
_ "github.com/host-uk/core/pkg/php"
|
|
)
|