## Summary - Extract PHP/Laravel commands to `core/php` repo (42 files, standalone module) - Extract CI/release + SDK commands to `core/ci` repo (10 files) - Remove `internal/variants/` build tag system entirely - Move all 30 remaining command packages from `internal/cmd/` to top-level `cmd/` - Rewrite `main.go` with direct imports — no more variant selection - PHP and CI are now optional via commented import lines in main.go Co-authored-by: Claude <developers@lethean.io> Reviewed-on: #2 Co-authored-by: Charon <charon@lthn.ai> Co-committed-by: Charon <charon@lthn.ai>
21 lines
708 B
Go
21 lines
708 B
Go
// Package gocmd provides Go development commands with enhanced output.
|
|
//
|
|
// Note: Package named gocmd because 'go' is a reserved keyword.
|
|
//
|
|
// Commands:
|
|
// - test: Run tests with colour-coded coverage summary
|
|
// - cov: Run tests with detailed coverage reports (HTML, thresholds)
|
|
// - fmt: Format code using goimports or gofmt
|
|
// - lint: Run golangci-lint
|
|
// - install: Install binary to $GOPATH/bin
|
|
// - mod: Module management (tidy, download, verify, graph)
|
|
// - work: Workspace management (sync, init, use)
|
|
//
|
|
// Sets MACOSX_DEPLOYMENT_TARGET to suppress linker warnings on macOS.
|
|
package gocmd
|
|
|
|
import "forge.lthn.ai/core/go/pkg/cli"
|
|
|
|
func init() {
|
|
cli.RegisterCommands(AddGoCommands)
|
|
}
|