confirmSetupAndContinue static method
Implementation
static Future<void> confirmSetupAndContinue(
final CommandLogger logger,
final ProjectLaunch projectSetup,
) async {
logger.box('Project setup\n\n$projectSetup');
final prompt = projectSetup.preexistingProject == true
? 'Continue and apply this setup?'
: 'Continue and open the browser to create this new project?';
final confirm = await logger.confirm(prompt, defaultValue: true);
if (!confirm) {
logger.info('Setup cancelled.');
throw UserAbortException();
}
}