feat: flatten node CLI commands

This commit is contained in:
Peter Steinberger
2026-01-21 16:48:26 +00:00
parent 0e003cb7f1
commit fa1bc589e4
5 changed files with 48 additions and 321 deletions

View File

@@ -47,10 +47,7 @@ type NodeDaemonStatusOptions = {
};
function renderNodeServiceStartHints(): string[] {
const base = [
formatCliCommand("clawdbot node service install"),
formatCliCommand("clawdbot node start"),
];
const base = [formatCliCommand("clawdbot node install"), formatCliCommand("clawdbot node start")];
switch (process.platform) {
case "darwin":
return [
@@ -172,9 +169,7 @@ export async function runNodeDaemonInstall(opts: NodeDaemonInstallOptions) {
});
if (!json) {
defaultRuntime.log(`Node service already ${service.loadedText}.`);
defaultRuntime.log(
`Reinstall with: ${formatCliCommand("clawdbot node service install --force")}`,
);
defaultRuntime.log(`Reinstall with: ${formatCliCommand("clawdbot node install --force")}`);
}
return;
}