import { prompt } from "https://dotland.deno.dev/x/fluentci@v0.13.0/deps.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
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>