fix(cli): daemon output + health colors

This commit is contained in:
Peter Steinberger
2026-01-15 08:28:33 +00:00
parent 2bae4d2dba
commit f1ac18933c
6 changed files with 58 additions and 3 deletions

View File

@@ -415,6 +415,8 @@ export async function installLaunchAgent({
}
await execLaunchctl(["kickstart", "-k", `${domain}/${label}`]);
// Ensure we don't end up writing to a clack spinner line (wizards show progress without a newline).
stdout.write("\n");
stdout.write(`${formatLine("Installed LaunchAgent", plistPath)}\n`);
stdout.write(`${formatLine("Logs", stdoutPath)}\n`);
return { plistPath };

View File

@@ -240,6 +240,8 @@ export async function installScheduledTask({
}
await execSchtasks(["/Run", "/TN", taskName]);
// Ensure we don't end up writing to a clack spinner line (wizards show progress without a newline).
stdout.write("\n");
stdout.write(`${formatLine("Installed Scheduled Task", taskName)}\n`);
stdout.write(`${formatLine("Task script", scriptPath)}\n`);
return { scriptPath };

View File

@@ -238,6 +238,8 @@ export async function installSystemdService({
throw new Error(`systemctl restart failed: ${restart.stderr || restart.stdout}`.trim());
}
// Ensure we don't end up writing to a clack spinner line (wizards show progress without a newline).
stdout.write("\n");
stdout.write(`${formatLine("Installed systemd service", unitPath)}\n`);
return { unitPath };
}