Skip to main content
Module

x/cliffy/prompt.ts>Confirm

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
class Confirm
extends GenericInput<boolean, ConfirmSettings>
import { Confirm } from "https://deno.land/x/cliffy@v0.12.1/prompt.ts";

Methods

protected
format(value: boolean): string
protected
getMessage(): string
protected
transform(value: string): boolean | undefined
protected
validate(value: string): boolean | string

Static Methods

prompt(options: string | ConfirmOptions): Promise<boolean>