import { cliffy } from "https://deno.land/x/alloy_folk@v1.1.1/deps.ts";
const { Input } = cliffy;
Input prompt representation.
Methods
protected
format(value: string): stringFormat output value.
protected
getValue(): stringGet input value.
protected
success(value: string): string | undefinedprotected
transform(value: string): string | undefinedMap 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 | InputOptions): Promise<string>
Execute the prompt and show cursor on end.