Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cliffy/packages/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://deno.land/x/cliffy@0.12.1/packages/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[]>
separator(label?: string): CheckboxOption