confirmNewProjectCostAcceptance static method

Future<void> confirmNewProjectCostAcceptance(
  1. CommandLogger logger
)

Asks the user for confirmation to continue with a new project setup that may incur additional costs.

Throws UserAbortException if the user does not confirm.

Implementation

static Future<void> confirmNewProjectCostAcceptance(
  final CommandLogger logger,
) async {
  final confirm = await logger.confirm(
    'Depending on your subscription, a new project may incur additional costs. Continue?',
    defaultValue: true,
  );

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