runWithConfig method

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

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

Implementation

@override
Future<void> runWithConfig(final Configuration commandConfig) async {
  final projectId = commandConfig.value(ProjectCreateOption.projectId);
  final plan = commandConfig.optionalValue(ProjectCreateOption.plan);
  final enableDb = commandConfig.value(ProjectCreateOption.enableDb);

  await ProjectCommands.createProject(
    runner.serviceProvider.cloudApiClient,
    logger: logger,
    projectId: projectId,
    plan: plan,
    enableDb: enableDb,
  );
}