Commands¶
go-crap-tracker is a Cobra CLI. The root command loads configuration once and dispatches to a subcommand.
| Command | Description |
|---|---|
serve |
Start the control plane: HTTP API, web UI, SSE, reconciler, auto-migrations |
worker |
Start a scan worker (NATS JetStream consumer) |
publish |
Generate the Hugo report index and per-repo detail pages |
repo |
Manage the shared repository cache: list, delete, unlock, per-repo config |
version |
Show version (--simple prints only the version string) |
completion |
Generate a shell completion script |
Global flags¶
| Flag | Description |
|---|---|
--config string |
Config file. Defaults to .go-crap-tracker.yaml in the project root or $HOME. |
Common patterns¶
# Version for scripting
go-crap-tracker version --simple
# List cached repos as JSON
go-crap-tracker repo list --json
# Override the config file for a single invocation
go-crap-tracker serve --config /etc/go-crap-tracker.yaml
→ Configuration for what each flag and env var does.