import { List } from "https://deno.land/x/cliffy@v0.16.0/prompt/mod.ts";
List prompt representation.
Methods
protected
addChar(char: string): voidAdd char.
protected
deleteChar(): voidDelete char left.
protected
format(value: string[]): stringFormat output value.
protected
getValue(): stringGet input value.
protected
input(): stringprotected
regexp(): RegExpCreate list regex.
protected
transform(value: string): string[]Map input value to output value.
protected
validate(value: string): boolean | stringValidate input value.
Static Methods
prompt(options: string | ListOptions): Promise<string[]>
Execute the prompt and show cursor on end.