fix(cli/systemd): Fix status command to pass debug flag and improve systemd status logging output

This commit is contained in:
2025-03-25 10:27:08 +00:00
parent 5eefe8cf40
commit edce110c8a
4 changed files with 27 additions and 3 deletions

View File

@@ -182,7 +182,9 @@ export class NupstCli {
* Show status of the systemd service and UPS
*/
private async status(): Promise<void> {
await this.nupst.getSystemd().getStatus();
// Extract debug options from args array
const debugOptions = this.extractDebugOptions(process.argv);
await this.nupst.getSystemd().getStatus(debugOptions.debugMode);
}
/**