Skip to main content
Module

x/cliffy/examples/prompt/suggestions.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 { Input } from "../../prompt/input.ts";import { colors } from "./data/colors.ts";
const colorNames: Array<string> = Object.values(colors);
const color: string = await Input.prompt({ message: "Choose a color", suggestions: colorNames,});
console.log({ color });