Module

x/cliffy/prompt/mod.ts>Checkbox

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
class Checkbox
extends GenericList<string[], string[], CheckboxSettings>
import { Checkbox } from "https://dotland.deno.dev/x/cliffy@v0.15.0/prompt/mod.ts";

Methods

protected
checkValue()
protected
format(value: string[]): string
protected
getValue(): string[]
protected
handleEvent(event: KeyEvent): Promise<boolean>
protected
transform(value: string[]): string[]
protected
validate(value: string[]): boolean | string
protected
writeListItem(item: CheckboxOptionSettings, isSelected?: boolean)

Static Methods

protected
mapItem(item: CheckboxOption, defaults?: string[]): CheckboxOptionSettings
inject(value: string[]): void
prompt(options: CheckboxOptions): Promise<string[]>