fix(cli/ups-handler): Improve UPS device listing table formatting for better column alignment

This commit is contained in:
2025-03-28 22:30:01 +00:00
parent 80ff1b1230
commit 88e353eec6
3 changed files with 8 additions and 3 deletions

View File

@ -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);