Module

x/cliffy/prompt.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.6.1/prompt.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
protected
writeListItem(item: CheckboxOptionSettings, isSelected?: boolean)

Static Methods

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