Skip to main content
Module

x/cliffy/prompt/toggle.ts>ToggleOptions

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Latest
interface ToggleOptions
implements GenericPromptOptions<boolean, string>
import { type ToggleOptions } from "https://deno.land/x/cliffy@v1.0.0-rc.4/prompt/toggle.ts";

Generic prompt options.

Properties

optional
keys: ToggleKeys

Keymap to assign key names to prompt actions.

optional
active: string

Change active label. Default is "Yes".

optional
inactive: string

Change inactive label. Default is "No".