Skip to content

FEAT: add daily CLI update checks#28

Merged
tom-nash merged 2 commits into
mainfrom
tom-nash/auto-update-checks
Apr 7, 2026
Merged

FEAT: add daily CLI update checks#28
tom-nash merged 2 commits into
mainfrom
tom-nash/auto-update-checks

Conversation

@tom-nash
Copy link
Copy Markdown
Member

@tom-nash tom-nash commented Apr 7, 2026

Summary

Adds a best-effort daily update check for interactive cordon CLI runs, skipping hook, --mcp, and --json invocations.
Introduces skip_update_check and last_update_check support in ~/.cordon/config.json, including a Y/n prompt when a newer GitHub release is detected and install via the existing install.sh flow.
Skips update-check side effects entirely for dev builds so development binaries do not write last_update_check.
Adds unit coverage for update-check logic and documents the behavior in README.
Updates scripts/dev-install.sh to accept VERSION so local builds can mimic release versions for update testing.

@tom-nash tom-nash self-assigned this Apr 7, 2026
@tom-nash tom-nash requested a review from a team April 7, 2026 10:09
@tom-nash tom-nash added the enhancement New feature or request label Apr 7, 2026
@tom-nash tom-nash merged commit c89f350 into main Apr 7, 2026
4 checks passed
@tom-nash tom-nash deleted the tom-nash/auto-update-checks branch April 7, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant