runWithConfig method

  1. @override
Future<void> runWithConfig(
  1. Configuration<DbWipeOption> commandConfig
)
override

Runs this command with prepared configuration (options). Subclasses should override this method.

Implementation

@override
Future<void> runWithConfig(
  final Configuration<DbWipeOption> commandConfig,
) async {
  final projectId = commandConfig.value(DbWipeOption.projectId);
  final skipConfirmation = globalConfiguration.skipConfirmation;

  await DbCommands.wipeDatabase(
    runner.serviceProvider.cloudApiClient,
    logger: logger,
    projectId: projectId,
    skipConfirmation: skipConfirmation,
  );
}