Skip to content
Merged
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
6 changes: 4 additions & 2 deletions src/lib/init/interactive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,14 @@ async function handleMultiSelect(
}

const hints: string[] = [];
// Use clack's vertical bar character so hint lines align with the option lines below
const bar = chalk.gray("\u2502");
if (hasRequired) {
hints.push(
chalk.dim(` ${featureLabel(REQUIRED_FEATURE)} is always included`)
`${bar} ${chalk.dim(`${featureLabel(REQUIRED_FEATURE)} is always included`)}`
);
}
hints.push(chalk.dim(" space=toggle, a=all, enter=confirm"));
hints.push(`${bar} ${chalk.dim("space=toggle, a=all, enter=confirm")}`);

const selected = await multiselect({
message: `${payload.prompt}\n${hints.join("\n")}`,
Expand Down
Loading