From 1c50509497753e4c6291abbf444fa1450ab651e4 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Sun, 15 Mar 2026 12:04:05 +0000 Subject: [PATCH] fix(cli): rename the update command references to upgrade across the CLI and documentation --- changelog.md | 7 +++++++ readme.md | 4 ++-- readme.plan.md | 2 +- ts/00_commitinfo_data.ts | 2 +- ts/cli.ts | 4 ++-- ts/cli/service-handler.ts | 2 +- ts/daemon.ts | 2 +- ts/nupst.ts | 4 ++-- ts/systemd.ts | 2 +- 9 files changed, 18 insertions(+), 11 deletions(-) diff --git a/changelog.md b/changelog.md index cbeec67..523e3ea 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2026-03-15 - 5.3.1 - fix(cli) +rename the update command references to upgrade across the CLI and documentation + +- Updates command parsing and help output to use `upgrade` instead of `update`. +- Revises user-facing upgrade prompts in daemon, systemd, and runtime status messages. +- Aligns README and command migration documentation with the renamed command. + ## 2026-02-20 - 5.3.0 - feat(daemon) Add UPSD (NUT) protocol support, Proxmox VM shutdown action, pause/resume monitoring, and network-loss/unreachable handling; bump config version to 4.2 diff --git a/readme.md b/readme.md index 13d8ec6..b11b23f 100644 --- a/readme.md +++ b/readme.md @@ -211,7 +211,7 @@ nupst feature httpServer # Configure HTTP JSON status API ```bash nupst config show # Display current configuration -nupst update # Update to latest version (requires root) +nupst upgrade # Upgrade to latest version (requires root) nupst uninstall # Completely remove NUPST (requires root) ``` @@ -676,7 +676,7 @@ Any UPS supported by [NUT (Network UPS Tools)](https://networkupstools.org/) — ### Built-in Update ```bash -sudo nupst update +sudo nupst upgrade ``` ### Re-run Installer diff --git a/readme.plan.md b/readme.plan.md index e2b23dc..6b2a137 100644 --- a/readme.plan.md +++ b/readme.plan.md @@ -195,7 +195,7 @@ nupst group edit → nupst group edit nupst group delete → nupst group remove nupst config → nupst config show -nupst update → nupst update +nupst upgrade → nupst upgrade nupst uninstall → nupst uninstall nupst help → nupst help / nupst --help (new) → nupst --version diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index c4c9b12..c048fc0 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/nupst', - version: '5.3.0', + version: '5.3.1', description: 'Network UPS Shutdown Tool - Monitor SNMP-enabled UPS devices and orchestrate graceful system shutdowns during power emergencies' } diff --git a/ts/cli.ts b/ts/cli.ts index 780cb29..a01a8f1 100644 --- a/ts/cli.ts +++ b/ts/cli.ts @@ -266,7 +266,7 @@ export class NupstCli { case 'resume': await serviceHandler.resume(); break; - case 'update': + case 'upgrade': await serviceHandler.update(); break; case 'uninstall': @@ -557,7 +557,7 @@ export class NupstCli { this.printCommand('config [show]', 'Display current configuration'); this.printCommand('pause [--duration