We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d08cf6d commit 645b551Copy full SHA for 645b551
src/util/prompt/radio.ts
@@ -1,10 +1,10 @@
1
-import {rawlist} from "@inquirer/prompts";
+import {select} from "@inquirer/prompts";
2
3
/**
4
* Provides a "radio button group" of potential options the user may pick
5
*/
6
export async function radio<T extends string>(message: string, items: T[] | readonly T[]): Promise<T> {
7
- const answer = await rawlist({
+ const answer = await select({
8
message,
9
choices: items.map(item => ({name: item, value: item}))
10
});
0 commit comments