diff --git a/changelog.md b/changelog.md index a30f889..2272af8 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2025-03-28 - 3.1.2 - fix(cli/ups-handler) +Improve UPS device listing table formatting for better column alignment + +- Adjusted header spacing for the Host column and overall table alignment in the UPS handler output. + ## 2025-03-28 - 3.1.1 - fix(cli) Improve table header formatting in group and UPS listings diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 1e78123..c975a13 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: '3.1.1', + version: '3.1.2', description: 'Node.js UPS Shutdown Tool for SNMP-enabled UPS devices' } diff --git a/ts/cli/ups-handler.ts b/ts/cli/ups-handler.ts index 13709e7..70c4754 100644 --- a/ts/cli/ups-handler.ts +++ b/ts/cli/ups-handler.ts @@ -400,8 +400,8 @@ export class UpsHandler { } else { logger.logBoxLine(`Found ${config.upsDevices.length} UPS device(s)`); logger.logBoxLine(''); - logger.logBoxLine('ID | Name | Host | Mode | Groups'); - logger.logBoxLine('-----------+----------------------+----------------+--------------+----------------'); + logger.logBoxLine('ID | Name | Host | Mode | Groups'); + logger.logBoxLine('-----------+----------------------+-----------------+--------------+----------------'); for (const ups of config.upsDevices) { const id = ups.id.padEnd(10, ' ').substring(0, 10);