Toggle
The Toggle prompt is a simple yes or no switch.
import { Toggle } from "https://deno.land/x/cliffy@v1.0.0-rc.4/prompt/toggle.ts";
const confirmed: boolean = await Toggle.prompt("Can you confirm?");Copydeno run https://deno.land/x/cliffy@v1.0.0-rc.4/examples/prompt/toggle.tsCopyOptions
The Toggle prompt has all base options and the following prompt
specific options.
Active label
The text for the active state can be changed with the active option. Defaults
to 'Yes'.
Inactive label
The text for the inactive state can be changed with the inactive option.
Defaults to 'No'.