- Move cmd/core/cmd/* to cmd/* (flatten directory structure) - Update module path from github.com/host-uk/core/cmd/core to github.com/host-uk/core - Remove go.mod files from pkg/* (single module now) - Simplify pkg/mcp to file operations only (no GUI deps) - GUI features (display, webview, process) stay in core-gui/pkg/mcp - Fix import aliases (sdkpkg) for package name conflicts - Remove old backup directory (cmdbk) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
549 B
Go
23 lines
549 B
Go
//go:build ci
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"github.com/host-uk/core/cmd/build"
|
|
"github.com/host-uk/core/cmd/ci"
|
|
"github.com/host-uk/core/cmd/doctor"
|
|
"github.com/host-uk/core/cmd/sdk"
|
|
"github.com/leaanthony/clir"
|
|
)
|
|
|
|
// registerCommands adds only CI/release commands for the minimal binary.
|
|
// Build with: go build -tags ci
|
|
func registerCommands(app *clir.Cli) {
|
|
// CI/Release commands only - minimal attack surface
|
|
build.AddCommands(app)
|
|
ci.AddCommands(app)
|
|
sdk.AddCommands(app)
|
|
|
|
// Doctor for environment verification
|
|
doctor.AddCommands(app)
|
|
}
|