import { prompt } from "https://deno.land/x/cliffy@v1.0.0-rc.1/prompt/prompt.ts";
Runs an array of prompts.
import { prompt } from "./prompt.ts";
import { Input } from "./input.ts";
import { Confirm } from "./confirm.ts";
import { Checkbox } from "./checkbox.ts";
const result = await prompt([{
name: "name",
message: "What's your name?",
type: Input,
}, {
name: "age",
message: "How old are you?",
type: Confirm,
}, {
name: "color",
message: "Whats your favorit color?",
type: Checkbox,
options: ["red", "green", "blue"],
}]);
console.log(result);
Type Parameters
TOptions0 extends GenericPromptOptions<any, any>
TOptions1 extends GenericPromptOptions<any, any>
TOptions2 extends GenericPromptOptions<any, any>
TOptions3 extends GenericPromptOptions<any, any>
TOptions4 extends GenericPromptOptions<any, any>
TOptions5 extends GenericPromptOptions<any, any>
TOptions6 extends GenericPromptOptions<any, any>
TOptions7 extends GenericPromptOptions<any, any>
TOptions8 extends GenericPromptOptions<any, any>
TOptions9 extends GenericPromptOptions<any, any>
TOptions10 extends GenericPromptOptions<any, any>
TOptions11 extends GenericPromptOptions<any, any>
TOptions12 extends GenericPromptOptions<any, any>
TOptions13 extends GenericPromptOptions<any, any>
TOptions14 extends GenericPromptOptions<any, any>
TOptions15 extends GenericPromptOptions<any, any>
TOptions16 extends GenericPromptOptions<any, any>
TOptions17 extends GenericPromptOptions<any, any>
TOptions18 extends GenericPromptOptions<any, any>
TOptions19 extends GenericPromptOptions<any, any>
TOptions20 extends GenericPromptOptions<any, any>
TOptions21 extends GenericPromptOptions<any, any>
TOptions22 extends GenericPromptOptions<any, any>
TOptions23 extends GenericPromptOptions<any, any>
TStaticPrompt0 extends StaticGenericPrompt<any, TOptions0>
TStaticPrompt1 extends StaticGenericPrompt<any, TOptions1>
TStaticPrompt2 extends StaticGenericPrompt<any, TOptions2>
TStaticPrompt3 extends StaticGenericPrompt<any, TOptions3>
TStaticPrompt4 extends StaticGenericPrompt<any, TOptions4>
TStaticPrompt5 extends StaticGenericPrompt<any, TOptions5>
TStaticPrompt6 extends StaticGenericPrompt<any, TOptions6>
TStaticPrompt7 extends StaticGenericPrompt<any, TOptions7>
TStaticPrompt8 extends StaticGenericPrompt<any, TOptions8>
TStaticPrompt9 extends StaticGenericPrompt<any, TOptions9>
TStaticPrompt10 extends StaticGenericPrompt<any, TOptions10>
TStaticPrompt11 extends StaticGenericPrompt<any, TOptions11>
TStaticPrompt12 extends StaticGenericPrompt<any, TOptions12>
TStaticPrompt13 extends StaticGenericPrompt<any, TOptions13>
TStaticPrompt14 extends StaticGenericPrompt<any, TOptions14>
TStaticPrompt15 extends StaticGenericPrompt<any, TOptions15>
TStaticPrompt16 extends StaticGenericPrompt<any, TOptions16>
TStaticPrompt17 extends StaticGenericPrompt<any, TOptions17>
TStaticPrompt18 extends StaticGenericPrompt<any, TOptions18>
TStaticPrompt19 extends StaticGenericPrompt<any, TOptions19>
TStaticPrompt20 extends StaticGenericPrompt<any, TOptions20>
TStaticPrompt21 extends StaticGenericPrompt<any, TOptions21>
TStaticPrompt22 extends StaticGenericPrompt<any, TOptions22>
TStaticPrompt23 extends StaticGenericPrompt<any, TOptions23>
Parameters
optional
options: GlobalPromptOptions<TResult>Global prompt options.