Skip to content

Commit 645b551

Browse files
committed
chore: use select instead of rawlist
1 parent d08cf6d commit 645b551

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/prompt/radio.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import {rawlist} from "@inquirer/prompts";
1+
import {select} from "@inquirer/prompts";
22

33
/**
44
* Provides a "radio button group" of potential options the user may pick
55
*/
66
export async function radio<T extends string>(message: string, items: T[] | readonly T[]): Promise<T> {
7-
const answer = await rawlist({
7+
const answer = await select({
88
message,
99
choices: items.map(item => ({name: item, value: item}))
1010
});

0 commit comments

Comments
 (0)