import { cliffy } from "https://deno.land/x/alloy_folk@v1.1.1/deps.ts";
const { List } = cliffy;
List prompt representation.
Methods
protected
addChar(char: string): voidAdd char.
protected
complete(): Promise<string>protected
deleteChar(): voidDelete char left.
protected
format(value: string[]): stringFormat output value.
protected
getCurrentInputValue(): stringprotected
getTags(value?: string): Array<string>protected
getValue(): stringGet input value.
protected
input(): stringprotected
regexp(): RegExpCreate list regex.
protected
success(value: string[]): string | undefinedprotected
transform(value: string): string[]Map input value to output value.
protected
validate(value: string): boolean | stringValidate input value.
Static Methods
inject(value: string): void
Inject prompt value. Can be used for unit tests or pre selections.
prompt(options: string | ListOptions): Promise<string[]>
Execute the prompt and show cursor on end.