Skip to content

feat: add zcli update command with auto-update notification#271

Closed
adityachaudhary99 wants to merge 1 commit into
zeropsio:mainfrom
adityachaudhary99:feat/zcli-update-command
Closed

feat: add zcli update command with auto-update notification#271
adityachaudhary99 wants to merge 1 commit into
zeropsio:mainfrom
adityachaudhary99:feat/zcli-update-command

Conversation

@adityachaudhary99
Copy link
Copy Markdown

Implements the feature requested in #185 — a simpler \zcli update\ command that checks for updates and prompts to install, plus an auto-update notification when running \zcli.

New: \src/cmd/update.go\

  • Checks current vs latest version
  • Shows \Current: vX.Y.Z / Latest: vA.B.C\
  • Prompts y/n to update (ohmyzsh-style)
  • Downloads + applies the binary with a spinner
  • Supports --yes\ flag to skip confirmation
  • Handles install method detection and old pre-v1.1.0 releases

Modified: \src/cmd/root.go\

  • Registered \updateCmd()\ between \�ersion\ and \upgrade\
  • Auto-update check: background cache refresh + non-blocking MismatchWarning in both GuestRunFunc and LoggedUserRunFunc

Modified: \src/i18n/i18n.go\ + \src/i18n/en.go\

Added i18n constants and English translations.

Closes #185

@tikinang
Copy link
Copy Markdown
Contributor

Closing, already implemented: #259

@tikinang tikinang closed this May 26, 2026
@adityachaudhary99
Copy link
Copy Markdown
Author

@tikinang missed that totally, my bad

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.

new command: zcli update

2 participants