fix(cli): daemon output + health colors
This commit is contained in:
@@ -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 };
|
||||
|
||||
@@ -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 };
|
||||
|
||||
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user