fix(cli/ups-handler): Improve UPS device listing table formatting for better column alignment
This commit is contained in:
parent
80ff1b1230
commit
88e353eec6
@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# 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)
|
## 2025-03-28 - 3.1.1 - fix(cli)
|
||||||
Improve table header formatting in group and UPS listings
|
Improve table header formatting in group and UPS listings
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@serve.zone/nupst',
|
name: '@serve.zone/nupst',
|
||||||
version: '3.1.1',
|
version: '3.1.2',
|
||||||
description: 'Node.js UPS Shutdown Tool for SNMP-enabled UPS devices'
|
description: 'Node.js UPS Shutdown Tool for SNMP-enabled UPS devices'
|
||||||
}
|
}
|
||||||
|
@ -400,8 +400,8 @@ export class UpsHandler {
|
|||||||
} else {
|
} else {
|
||||||
logger.logBoxLine(`Found ${config.upsDevices.length} UPS device(s)`);
|
logger.logBoxLine(`Found ${config.upsDevices.length} UPS device(s)`);
|
||||||
logger.logBoxLine('');
|
logger.logBoxLine('');
|
||||||
logger.logBoxLine('ID | Name | Host | Mode | Groups');
|
logger.logBoxLine('ID | Name | Host | Mode | Groups');
|
||||||
logger.logBoxLine('-----------+----------------------+----------------+--------------+----------------');
|
logger.logBoxLine('-----------+----------------------+-----------------+--------------+----------------');
|
||||||
|
|
||||||
for (const ups of config.upsDevices) {
|
for (const ups of config.upsDevices) {
|
||||||
const id = ups.id.padEnd(10, ' ').substring(0, 10);
|
const id = ups.id.padEnd(10, ' ').substring(0, 10);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user