Split all cmd/* packages for maintainability, following the pattern established in cmd/php. Each package now has: - Main file with styles (using cmd/shared) and Add*Commands function - Separate files for logical command groupings Packages refactored: - cmd/dev: 13 files (was 2779 lines in one file) - cmd/build: 5 files (was 913 lines) - cmd/setup: 6 files (was 961 lines) - cmd/go: 5 files (was 655 lines) - cmd/pkg: 5 files (was 634 lines) - cmd/vm: 4 files (was 717 lines) - cmd/ai: 5 files (was 800 lines) - cmd/docs: 5 files (was 379 lines) - cmd/doctor: 5 files (was 301 lines) - cmd/test: 3 files (was 429 lines) - cmd/ci: 5 files (was 272 lines) All packages now import shared styles from cmd/shared instead of redefining them locally. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
740 B
Go
24 lines
740 B
Go
// Package build provides project build commands with auto-detection.
|
|
//
|
|
// Supports building:
|
|
// - Go projects (standard and cross-compilation)
|
|
// - Wails desktop applications
|
|
// - Docker images
|
|
// - LinuxKit VM images
|
|
// - Taskfile-based projects
|
|
//
|
|
// Configuration via .core/build.yaml or command-line flags.
|
|
//
|
|
// Subcommands:
|
|
// - build: Auto-detect and build the current project
|
|
// - build from-path: Build from a local static web app directory
|
|
// - build pwa: Build from a live PWA URL
|
|
// - build sdk: Generate API SDKs from OpenAPI spec
|
|
package build
|
|
|
|
import "github.com/leaanthony/clir"
|
|
|
|
// AddCommands registers the 'build' command and all subcommands.
|
|
func AddCommands(app *clir.Cli) {
|
|
AddBuildCommand(app)
|
|
}
|