@typespec/compiler
Version:
TypeSpec Compiler Preview
16 lines • 580 B
JavaScript
import { checkbox as inquirerCheckbox } from "@inquirer/prompts";
import pc from "picocolors";
export function checkbox(config) {
return inquirerCheckbox({
...config,
instructions: pc.gray(` (Press ${pc.cyan("space")} to select, ${pc.cyan("a")} to toggle all, ${pc.cyan("i")} to invert selection and ${pc.cyan("enter")} to proceed.)`),
theme: {
...config.theme,
icon: {
unchecked: pc.cyan(" ◯"),
checked: pc.green(" ◉"),
},
},
});
}
//# sourceMappingURL=prompts.js.map