@typespec/compiler
Version:
TypeSpec compiler and standard library
18 lines • 629 B
JavaScript
import { checkbox as inquirerCheckbox } from "@inquirer/prompts";
import pc from "picocolors";
export function checkbox(config) {
return inquirerCheckbox({
...config,
theme: {
...config.theme,
style: {
keysHelpTip: () => 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.)`),
},
icon: {
unchecked: pc.cyan(" ◯"),
checked: pc.green(" ◉"),
},
},
});
}
//# sourceMappingURL=prompts.js.map