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

x/cliffy/prompt/toggle.ts>ToggleOptions

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
interface ToggleOptions
implements GenericPromptOptions<boolean, string>
import { type ToggleOptions } from "https://deno.land/x/cliffy@v1.0.0-rc.1/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".