Replace leaanthony/clir with spf13/cobra across all command packages. This provides better subcommand handling, built-in shell completion, and a more widely-used CLI framework. Changes: - Update cmd/core.go with cobra root command and completion support - Convert all subcommand packages to use *cobra.Command - Use init() functions for flag registration instead of inline setup - Maintain all existing functionality and flag behaviors Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
743 B
Go
24 lines
743 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/spf13/cobra"
|
|
|
|
// AddCommands registers the 'build' command and all subcommands.
|
|
func AddCommands(root *cobra.Command) {
|
|
AddBuildCommand(root)
|
|
}
|