2026-01-29 12:35:27 +00:00
|
|
|
//go:build !ci
|
|
|
|
|
|
2026-01-29 18:27:33 +00:00
|
|
|
// core_dev.go registers commands for the full development binary.
|
|
|
|
|
//
|
|
|
|
|
// Build with: go build (default)
|
|
|
|
|
//
|
|
|
|
|
// This is the default build variant with all development tools:
|
|
|
|
|
// - dev: Multi-repo git workflows (commit, push, pull, sync)
|
|
|
|
|
// - ai: AI agent task management
|
|
|
|
|
// - go: Go module and build tools
|
|
|
|
|
// - php: Laravel/Composer development tools
|
|
|
|
|
// - build: Cross-platform compilation
|
|
|
|
|
// - ci: Release publishing
|
|
|
|
|
// - sdk: API compatibility checks
|
|
|
|
|
// - pkg: Package management
|
|
|
|
|
// - vm: LinuxKit VM management
|
|
|
|
|
// - docs: Documentation generation
|
|
|
|
|
// - setup: Repository cloning and setup
|
|
|
|
|
// - doctor: Environment health checks
|
|
|
|
|
// - test: Test runner with coverage
|
|
|
|
|
|
2026-01-29 12:35:27 +00:00
|
|
|
package cmd
|
|
|
|
|
|
refactor(cli): restructure cmd packages into subdirectories
- Move CLI commands into subdirectories matching command hierarchy:
dev/, go/, php/, build/, ci/, sdk/, pkg/, vm/, docs/, setup/, doctor/, test/, ai/
- Create shared/ package for common styles and utilities
- Add new `core ai` root command with claude subcommand
- Update package declarations and imports across all files
- Create commands.go entry points for each package
- Remove GUI-related files (moved to core-gui repo)
This makes the filesystem structure match the CLI command structure,
improving context capture and code organization.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 18:02:43 +00:00
|
|
|
import (
|
2026-01-29 18:13:51 +00:00
|
|
|
"github.com/host-uk/core/cmd/ai"
|
|
|
|
|
"github.com/host-uk/core/cmd/build"
|
|
|
|
|
"github.com/host-uk/core/cmd/ci"
|
|
|
|
|
"github.com/host-uk/core/cmd/dev"
|
|
|
|
|
"github.com/host-uk/core/cmd/docs"
|
|
|
|
|
"github.com/host-uk/core/cmd/doctor"
|
|
|
|
|
gocmd "github.com/host-uk/core/cmd/go"
|
|
|
|
|
"github.com/host-uk/core/cmd/php"
|
|
|
|
|
"github.com/host-uk/core/cmd/pkg"
|
|
|
|
|
"github.com/host-uk/core/cmd/sdk"
|
|
|
|
|
"github.com/host-uk/core/cmd/setup"
|
|
|
|
|
testcmd "github.com/host-uk/core/cmd/test"
|
|
|
|
|
"github.com/host-uk/core/cmd/vm"
|
refactor(cli): restructure cmd packages into subdirectories
- Move CLI commands into subdirectories matching command hierarchy:
dev/, go/, php/, build/, ci/, sdk/, pkg/, vm/, docs/, setup/, doctor/, test/, ai/
- Create shared/ package for common styles and utilities
- Add new `core ai` root command with claude subcommand
- Update package declarations and imports across all files
- Create commands.go entry points for each package
- Remove GUI-related files (moved to core-gui repo)
This makes the filesystem structure match the CLI command structure,
improving context capture and code organization.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 18:02:43 +00:00
|
|
|
)
|
2026-01-29 12:35:27 +00:00
|
|
|
|
2026-01-30 00:47:54 +00:00
|
|
|
func init() {
|
2026-01-29 18:27:33 +00:00
|
|
|
// Multi-repo workflow
|
2026-01-30 00:47:54 +00:00
|
|
|
dev.AddCommands(rootCmd)
|
2026-01-29 12:35:27 +00:00
|
|
|
|
2026-01-29 18:27:33 +00:00
|
|
|
// AI agent tools
|
2026-01-30 00:47:54 +00:00
|
|
|
ai.AddCommands(rootCmd)
|
2026-01-29 12:35:27 +00:00
|
|
|
|
2026-01-29 18:27:33 +00:00
|
|
|
// Language tooling
|
2026-01-30 00:47:54 +00:00
|
|
|
gocmd.AddCommands(rootCmd)
|
|
|
|
|
php.AddCommands(rootCmd)
|
2026-01-29 12:35:27 +00:00
|
|
|
|
2026-01-29 18:27:33 +00:00
|
|
|
// Build and release
|
2026-01-30 00:47:54 +00:00
|
|
|
build.AddCommands(rootCmd)
|
|
|
|
|
ci.AddCommands(rootCmd)
|
|
|
|
|
sdk.AddCommands(rootCmd)
|
2026-01-29 12:35:27 +00:00
|
|
|
|
2026-01-29 18:27:33 +00:00
|
|
|
// Environment management
|
2026-01-30 00:47:54 +00:00
|
|
|
pkg.AddCommands(rootCmd)
|
|
|
|
|
vm.AddCommands(rootCmd)
|
|
|
|
|
docs.AddCommands(rootCmd)
|
|
|
|
|
setup.AddCommands(rootCmd)
|
|
|
|
|
doctor.AddCommands(rootCmd)
|
|
|
|
|
testcmd.AddCommands(rootCmd)
|
2026-01-29 12:35:27 +00:00
|
|
|
}
|