Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@bomb.sh/args": "^0.3.1",
"@bomb.sh/router": "^0.8.0",
"@bomb.sh/tty": "^0.9.0",
"@clack/core": "^1.5.1",
"@clack/prompts": "^1.8.1",
"@clack/core": "^1.6.0",
"@clack/prompts": "^1.9.0",
"@fontsource-variable/inter": "^5.3.0",
"@types/node": "^22.19.3",
"@webcontainer/api": "^1.6.1",
Expand Down
35 changes: 31 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/content/docs/clack/packages/prompts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ const name = await new TextPrompt({
return [
title,
`${S_BAR} ${this.userInputWithCursor}`,
...formatInstructionFooter(['Enter: submit'], true),
...formatInstructionFooter(undefined, ['Enter: submit'], true),
].join('\n');
},
}).prompt();
Expand All @@ -1360,7 +1360,7 @@ if (isCancel(name)) process.exit(0);
| --- | --- |
| `symbol(state)` | The colored step symbol for a prompt state: cyan `◆` while active, dim `◆` while validating, green `◇` on submit, red `■` on cancel, and yellow `▲` on error. |
| `symbolBar(state)` | The guide bar `│` in the same color. Returns `undefined` while validating. |
| `formatInstructionFooter(instructions, hasGuide)` | Joins keyboard hints with ` • ` and returns the footer lines. With `hasGuide`, it adds a cyan `│` prefix and a closing `└` line. |
| `formatInstructionFooter(output, instructions, hasGuide)` | Joins keyboard hints with ` • `, wraps them to the width of the `output` stream (stdout when `undefined`), and returns the footer lines. With `hasGuide`, it adds a cyan `│` prefix and a closing `└` line. |
| `SELECT_INSTRUCTIONS` | The hints `select` shows: `↑/↓ to navigate` and `Enter: confirm`. |
| `MULTISELECT_INSTRUCTIONS` | The hints `multiselect` shows, which add `Space: select`. |
| `unicode` | `true` when the terminal supports Unicode. |
Expand Down