go/cmd/pkg/commands.go
Snider a2bad1c0aa refactor(cmd): migrate CLI from clir to cobra
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>
2026-01-30 00:47:54 +00:00

19 lines
665 B
Go

// Package pkg provides GitHub package management for host-uk repositories.
//
// Commands:
// - search: Search GitHub org for repos (cached for 1 hour)
// - install: Clone a repo from GitHub to packages/
// - list: List installed packages from repos.yaml
// - update: Pull latest changes for packages
// - outdated: Check which packages have unpulled commits
//
// Uses gh CLI for authenticated GitHub access. Results are cached in
// .core/cache/ within the workspace directory.
package pkg
import "github.com/spf13/cobra"
// AddCommands registers the 'pkg' command and all subcommands.
func AddCommands(root *cobra.Command) {
AddPkgCommands(root)
}