Skip to main content
Module

x/cliffy/prompt/mod.ts>StaticGenericPrompt

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

Static generic prompt interface.

Type Parameters

TValue
TOptions

Methods

optional
inject(value: TValue): void

Inject prompt value. If called, the prompt doesn't prompt for an input and returns immediately the injected value. Can be used for unit tests or pre selections.

prompt(options: TOptions): Promise<TValue>

Execute the prompt with the given options.