Skip to main content
Module

x/cliffy/prompt/mod.ts>SecretOptions

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

Secret prompt options.

Properties

optional
keys: SecretKeys
optional
label: string

Change prompt label. Default is Secret.

optional
hidden: boolean

If enabled, the input value is hidden, otherwise each character is replaced with a *.

optional
minLength: number

Limit minimum allowed length of the secret.

optional
maxLength: number

Limit maximum allowed length of the secret.