import { GenericPrompt } from "https://dotland.deno.dev/x/cliffy@v0.15.0/prompt/mod.ts";
Constructors
new
protected
GenericPrompt(settings: S)Properties
protected
value: T | undefinedMethods
protected
clear()protected
error(message: string)protected
getMessage(): string | Promise<string>protected
getSuccessMessage(value: T)protected
abstract
handleEvent(event: KeyEvent): Promise<boolean>protected
hint(hint: string)protected
message(message: string)protected
preBufferEmptyLines(message: string)protected
read(): Promise<boolean>protected
readChar(): Promise<Uint8Array>protected
abstract
setPrompt(message: string): void | Promise<void>protected
transformValue(value: V): T | undefinedprotected
abstract
validate(value: V): ValidateResultprotected
validateValue(value: V): Promise<boolean>protected
write(value: string)protected
writeLine(value?: string)Static Methods
inject(value: any): void