refactor: normalize cli command hints

This commit is contained in:
Peter Steinberger
2026-01-20 07:42:21 +00:00
parent 11b9b6dba5
commit 6d5195c890
106 changed files with 521 additions and 220 deletions

View File

@@ -26,6 +26,7 @@ import type {
OnboardOptions,
ResetScope,
} from "../commands/onboard-types.js";
import { formatCliCommand } from "../cli/command-format.js";
import type { ClawdbotConfig } from "../config/config.js";
import {
CONFIG_PATH_CLAWDBOT,
@@ -97,7 +98,7 @@ export async function runOnboardingWizard(
if (!snapshot.valid) {
await prompter.outro(
"Config invalid. Run `clawdbot doctor` to repair it, then re-run onboarding.",
`Config invalid. Run \`${formatCliCommand("clawdbot doctor")}\` to repair it, then re-run onboarding.`,
);
runtime.exit(1);
return;
@@ -133,7 +134,7 @@ export async function runOnboardingWizard(
}
}
const quickstartHint = "Configure details later via clawdbot configure.";
const quickstartHint = `Configure details later via ${formatCliCommand("clawdbot configure")}.`;
const advancedHint = "Configure port, network, Tailscale, and auth options.";
const explicitFlowRaw = opts.flow?.trim();
if (explicitFlowRaw && explicitFlowRaw !== "quickstart" && explicitFlowRaw !== "advanced") {