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>
19 lines
605 B
Go
19 lines
605 B
Go
// Package testcmd provides Go test running commands with enhanced output.
|
|
//
|
|
// Note: Package named testcmd to avoid conflict with Go's test package.
|
|
//
|
|
// Features:
|
|
// - Colour-coded pass/fail/skip output
|
|
// - Per-package coverage breakdown with --coverage
|
|
// - JSON output for CI/agents with --json
|
|
// - Filters linker warnings on macOS
|
|
//
|
|
// Flags: --verbose, --coverage, --short, --pkg, --run, --race, --json
|
|
package testcmd
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
// AddCommands registers the 'test' command and all subcommands.
|
|
func AddCommands(root *cobra.Command) {
|
|
root.AddCommand(testCmd)
|
|
}
|