Skip to content

Add check-update command#31

Merged
puerco merged 2 commits into
mainfrom
update
Apr 14, 2026
Merged

Add check-update command#31
puerco merged 2 commits into
mainfrom
update

Conversation

@puerco

@puerco puerco commented Apr 14, 2026

Copy link
Copy Markdown
Member

This pull request introduces a new check-update command to the CLI, which checks policy references for available updates. It also updates dependencies in go.mod to support this new functionality. The most important changes are:


New Command: Policy Reference Update Checking

  • Added a new check-update subcommand (internal/cmd/check_update.go) that inspects policy sources for external references with available updates, supporting both table and JSON output formats. This command can be used to automate policy update detection and integrates with future tooling.
  • Registered the new check-update command in the CLI by adding it to the root command initialization (internal/cmd/root.go).

Dependency Management

  • Updated the github.com/carabiner-dev/policy dependency to a newer version to support the new update-checking features (go.mod).
  • Added golang.org/x/term as a direct dependency to support dynamic terminal width detection for table output (go.mod).
  • Removed the indirect requirement for golang.org/x/term since it is now a direct dependency (go.mod).

Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@carabiner.dev>
@puerco puerco merged commit a8da081 into main Apr 14, 2026
4 checks passed
@puerco puerco deleted the update branch April 14, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant