import { GenericPrompt } from "https://deno.land/x/cliffy@0.12.1/packages/prompt/mod.ts";
Constructors
new
protected
GenericPrompt(settings: S)Properties
protected
value: T | undefinedMethods
protected
clear()protected
error(...args: any[])protected
getMessage(): string | Promise<string>protected
getSuccessMessage(value: T)protected
abstract
handleEvent(event: KeyEvent): Promise<boolean>protected
hint(...args: any[])protected
message(...args: any[])protected
preBufferEmptyLines(message: string)protected
read(): Promise<boolean>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(...args: any[])protected
writeLine(...args: any[])Static Methods
inject(value: any): void