Module

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