cli/main.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

19 lines
355 B
Go

package main
import (
"fmt"
"os"
"github.com/host-uk/core/pkg/cli"
// Build variants import commands via self-registration.
// See internal/variants/ for available variants: full, ci, php, minimal.
_ "github.com/host-uk/core/internal/variants"
)
func main() {
if err := cli.Main(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}