Skip to content

Notify af users about newer CLI versions#141

Open
HappyDevs1 wants to merge 1 commit into
mainfrom
cli-update-notice
Open

Notify af users about newer CLI versions#141
HappyDevs1 wants to merge 1 commit into
mainfrom
cli-update-notice

Conversation

@HappyDevs1

Copy link
Copy Markdown
Contributor

Summary

  • add a cached, best-effort update notice for interactive af commands
  • skip checks in CI, non-TTY sessions, containers, and explicit update runs
  • keep update checks advisory so network/cache failures do not affect commands

Fixes #140

Tests

  • deno fmt --check packages/cli/update_check.ts packages/cli/update_check_test.ts packages/cli/main.ts
  • deno lint packages/cli/update_check.ts packages/cli/update_check_test.ts packages/cli/main.ts
  • deno task check
  • deno test --allow-read --allow-write --allow-env --allow-run=bash --allow-net=127.0.0.1,0.0.0.0 packages/cli

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.

Notify users when a newer af CLI version is available

1 participant