confirmSetupAndContinue static method

Future<void> confirmSetupAndContinue(
  1. CommandLogger logger,
  2. ProjectLaunch projectSetup
)

Implementation

static Future<void> confirmSetupAndContinue(
  final CommandLogger logger,
  final ProjectLaunch projectSetup,
) async {
  logger.box('Project setup\n\n$projectSetup');
  final confirm = await logger.confirm(
    'Continue and apply this setup?',
    defaultValue: true,
  );

  if (!confirm) {
    logger.info('Setup cancelled.');
    throw UserAbortException();
  }
}