Module

x/cliffy/prompt/select.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://dotland.deno.dev/x/cliffy@v0.15.0/prompt/select.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>