fix(cli): Improve table header formatting in group and UPS listings

This commit is contained in:
2025-03-28 22:27:21 +00:00
parent eafb5207a4
commit 1075335497
4 changed files with 9 additions and 3 deletions

View File

@ -59,7 +59,7 @@ export class GroupHandler {
} else {
logger.logBoxLine(`Found ${config.groups.length} group(s)`);
logger.logBoxLine('');
logger.logBoxLine('ID | Name | Mode | UPS Devices');
logger.logBoxLine('ID | Name | Mode | UPS Devices');
logger.logBoxLine('-----------+----------------------+--------------+----------------');
for (const group of config.groups) {

View File

@ -400,7 +400,7 @@ export class UpsHandler {
} else {
logger.logBoxLine(`Found ${config.upsDevices.length} UPS device(s)`);
logger.logBoxLine('');
logger.logBoxLine('ID | Name | Host | Mode | Groups');
logger.logBoxLine('ID | Name | Host | Mode | Groups');
logger.logBoxLine('-----------+----------------------+----------------+--------------+----------------');
for (const ups of config.upsDevices) {