Skip to main content
Module

x/cliffy/examples/prompt/suggestions_list_prompt.ts

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
File
#!/usr/bin/env -S deno run --unstable
import { List } from "../../prompt/list.ts";import { colors } from "./data/colors.ts";
const colorNames: Array<string> = Object.keys(colors);
const color = await List.prompt({ message: "Choose a color", suggestions: colorNames,});
console.log({ color });