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

x/cliffy/prompt/prompt.ts>prompt

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
function prompt
import { prompt } from "https://deno.land/x/cliffy@v0.23.0/prompt/prompt.ts";

Type Parameters

N0 extends string
N1 extends string
N2 extends string
N3 extends string
N4 extends string
N5 extends string
N6 extends string
N7 extends string
N8 extends string
N9 extends string
N10 extends string
N11 extends string
N12 extends string
N13 extends string
N14 extends string
N15 extends string
N16 extends string
N17 extends string
N18 extends string
N19 extends string
N20 extends string
N21 extends string
N22 extends string
N23 extends string
O0 extends GenericPromptOptions<any, any>
O1 extends GenericPromptOptions<any, any>
O2 extends GenericPromptOptions<any, any>
O3 extends GenericPromptOptions<any, any>
O4 extends GenericPromptOptions<any, any>
O5 extends GenericPromptOptions<any, any>
O6 extends GenericPromptOptions<any, any>
O7 extends GenericPromptOptions<any, any>
O8 extends GenericPromptOptions<any, any>
O9 extends GenericPromptOptions<any, any>
O10 extends GenericPromptOptions<any, any>
O11 extends GenericPromptOptions<any, any>
O12 extends GenericPromptOptions<any, any>
O13 extends GenericPromptOptions<any, any>
O14 extends GenericPromptOptions<any, any>
O15 extends GenericPromptOptions<any, any>
O16 extends GenericPromptOptions<any, any>
O17 extends GenericPromptOptions<any, any>
O18 extends GenericPromptOptions<any, any>
O19 extends GenericPromptOptions<any, any>
O20 extends GenericPromptOptions<any, any>
O21 extends GenericPromptOptions<any, any>
O22 extends GenericPromptOptions<any, any>
O23 extends GenericPromptOptions<any, any>
G0 extends StaticGenericPrompt<any, any, O0, any, any>
optional
G1 extends StaticGenericPrompt<any, any, O1, any, any> | void = void
optional
G2 extends StaticGenericPrompt<any, any, O2, any, any> | void = void
optional
G3 extends StaticGenericPrompt<any, any, O3, any, any> | void = void
optional
G4 extends StaticGenericPrompt<any, any, O4, any, any> | void = void
optional
G5 extends StaticGenericPrompt<any, any, O5, any, any> | void = void
optional
G6 extends StaticGenericPrompt<any, any, O6, any, any> | void = void
optional
G7 extends StaticGenericPrompt<any, any, O7, any, any> | void = void
optional
G8 extends StaticGenericPrompt<any, any, O8, any, any> | void = void
optional
G9 extends StaticGenericPrompt<any, any, O9, any, any> | void = void
optional
G10 extends StaticGenericPrompt<any, any, O10, any, any> | void = void
optional
G11 extends StaticGenericPrompt<any, any, O11, any, any> | void = void
optional
G12 extends StaticGenericPrompt<any, any, O12, any, any> | void = void
optional
G13 extends StaticGenericPrompt<any, any, O13, any, any> | void = void
optional
G14 extends StaticGenericPrompt<any, any, O14, any, any> | void = void
optional
G15 extends StaticGenericPrompt<any, any, O15, any, any> | void = void
optional
G16 extends StaticGenericPrompt<any, any, O16, any, any> | void = void
optional
G17 extends StaticGenericPrompt<any, any, O17, any, any> | void = void
optional
G18 extends StaticGenericPrompt<any, any, O18, any, any> | void = void
optional
G19 extends StaticGenericPrompt<any, any, O19, any, any> | void = void
optional
G20 extends StaticGenericPrompt<any, any, O20, any, any> | void = void
optional
G21 extends StaticGenericPrompt<any, any, O21, any, any> | void = void
optional
G22 extends StaticGenericPrompt<any, any, O22, any, any> | void = void
optional
G23 extends StaticGenericPrompt<any, any, O23, any, any> | void = void
optional
R = Id<
& PromptResult<N0, G0>
& PromptResult<N1, G1>
& PromptResult<N2, G2>
& PromptResult<N3, G3>
& PromptResult<N4, G4>
& PromptResult<N5, G5>
& PromptResult<N6, G6>
& PromptResult<N7, G7>
& PromptResult<N8, G8>
& PromptResult<N9, G9>
& PromptResult<N10, G10>
& PromptResult<N11, G11>
& PromptResult<N12, G12>
& PromptResult<N13, G13>
& PromptResult<N14, G14>
& PromptResult<N15, G15>
& PromptResult<N16, G16>
& PromptResult<N17, G17>
& PromptResult<N18, G18>
& PromptResult<N19, G19>
& PromptResult<N20, G20>
& PromptResult<N21, G21>
& PromptResult<N22, G22>
& PromptResult<N23, G23>
>

Parameters

prompts:
[
PromptOptions<N0, G0, R>,
PromptOptions<N1, G1, R>,
PromptOptions<N2, G2, R>,
PromptOptions<N3, G3, R>,
PromptOptions<N4, G4, R>,
PromptOptions<N5, G5, R>,
PromptOptions<N6, G6, R>,
PromptOptions<N7, G7, R>,
PromptOptions<N8, G8, R>,
PromptOptions<N9, G9, R>,
PromptOptions<N10, G10, R>,
PromptOptions<N11, G11, R>,
PromptOptions<N12, G12, R>,
PromptOptions<N13, G13, R>,
PromptOptions<N14, G14, R>,
PromptOptions<N15, G15, R>,
PromptOptions<N16, G16, R>,
PromptOptions<N17, G17, R>,
PromptOptions<N18, G18, R>,
PromptOptions<N19, G19, R>,
PromptOptions<N20, G20, R>,
PromptOptions<N21, G21, R>,
PromptOptions<N22, G22, R>,
PromptOptions<N23, G23, R>,
]
optional
options: GlobalPromptOptions<R>

Returns

Promise<R>