Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cliffy/prompt/mod.ts>Select

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
class Select
extends GenericList<string, string, SelectSettings>
import { Select } from "https://deno.land/x/cliffy@v0.14.3/prompt/mod.ts";

Properties

protected
selected: number

Methods

protected
format(value: string): string
protected
getValue(): string
protected
handleEvent(event: KeyEvent): Promise<boolean>
protected
transform(value: string): string
protected
validate(value: string): boolean | string
protected
writeListItem(item: SelectOptionSettings, isSelected?: boolean)

Static Methods

protected
mapValues(optValues: SelectValueOptions): SelectOption[]
inject(value: string): void
prompt(options: SelectOptions): Promise<string>