Saltar al contenido principal
Versión: 0.24.0

Function: askForChoice()

function askForChoice(
runDir,
prompt,
options,
multiple?
): Promise<ChoiceAnswer>;

Defined in: core/hooks/humanInput.ts:51

A choice between options, through the port's askChoice() (or askDecision() with the options numbered in the prompt) and the response file, which takes the same answer: the numbers, or the person's own words.

Parameters​

ParameterTypeDefault value
runDirstringundefined
promptApprovalPromptundefined
optionsreadonly string[]undefined
multiplebooleanfalse

Returns​

Promise<ChoiceAnswer>