ux: improve CLI help examples and remove duplicate auth text (#1163)

- Diversify help command examples to showcase more agents and clouds
  (openclaw, goose, interpreter, vultr, digitalocean, linode)
- Remove duplicate "Auth: token" text in cloud info display
- Update test to match new help examples

Agent: ux-engineer

Co-authored-by: spawn-refactor-bot <refactor@openrouter.ai>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
A 2026-02-14 19:11:42 -08:00 committed by GitHub
parent 51de0a9dcb
commit bf738bee69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 7 deletions

View file

@ -143,7 +143,7 @@ describe("cmdHelp - content completeness", () => {
it("should show direct launch example with agent and cloud", () => {
const output = getHelpOutput();
expect(output).toContain("spawn claude sprite");
expect(output).toContain("spawn openclaw sprite");
});
it("should show --prompt example", () => {

View file

@ -1786,8 +1786,6 @@ function printQuickStart(opts: {
for (let i = 0; i < opts.authVars.length; i++) {
console.log(formatAuthVarLine(opts.authVars[i], i === 0 ? opts.cloudUrl : undefined));
}
} else if (opts.auth.toLowerCase() !== "none") {
console.log(` ${pc.dim(`Auth: ${opts.auth}`)}`);
}
if (opts.spawnCmd) {
console.log(` ${pc.cyan(opts.spawnCmd)}`);
@ -1932,18 +1930,19 @@ function getHelpUsageSection(): string {
function getHelpExamplesSection(): string {
return `${pc.bold("EXAMPLES")}
spawn ${pc.dim("# Pick interactively")}
spawn claude sprite ${pc.dim("# Launch Claude Code on Sprite")}
spawn openclaw sprite ${pc.dim("# Launch OpenClaw on Sprite")}
spawn aider hetzner ${pc.dim("# Launch Aider on Hetzner Cloud")}
spawn goose digitalocean ${pc.dim("# Launch Goose on DigitalOcean")}
spawn claude sprite --prompt "Fix all linter errors"
${pc.dim("# Execute Claude with prompt and exit")}
spawn aider sprite -p "Add tests" ${pc.dim("# Short form of --prompt")}
spawn claude sprite -f instructions.txt
spawn openclaw vultr -f instructions.txt
${pc.dim("# Read prompt from file (short for --prompt-file)")}
spawn claude sprite --dry-run ${pc.dim("# Preview without provisioning")}
spawn interpreter linode --dry-run ${pc.dim("# Preview without provisioning")}
spawn claude ${pc.dim("# Show which clouds support Claude")}
spawn hetzner ${pc.dim("# Show which agents run on Hetzner")}
spawn list ${pc.dim("# Browse history and pick one to rerun")}
spawn list claude ${pc.dim("# Filter history by agent name")}
spawn list aider ${pc.dim("# Filter history by agent name")}
spawn matrix ${pc.dim("# See the full agent x cloud matrix")}`;
}