Skip to content

basalt / create-app/src / runWizard

Function: runWizard() ​

> runWizard(prompter, options?): Promise<WizardResult>

Defined in: create-app/src/wizard.ts:77

The interactive scaffolding flow. Pure with respect to I/O — it drives the injected Prompter, so tests script the answers and assert the result. Throws WizardCancelledError if the user declines the final confirm.

Parameters ​

prompter ​

Prompter

options? ​

WizardOptions = {}

Returns ​

Promise<WizardResult>

Released under the MIT License.