runWithConfig method
Runs this command with prepared configuration (options). Subclasses should override this method.
Implementation
@override
Future<void> runWithConfig(
final Configuration<DeployCommandOption> commandConfig) async {
final projectId = commandConfig.value(DeployCommandOption.projectId);
final concurrency = commandConfig.value(DeployCommandOption.concurrency);
final dryRun = commandConfig.value(DeployCommandOption.dryRun);
final projectDirectory = runner.verifiedProjectDirectory();
logger.debug('Using project directory `${projectDirectory.path}`');
await Deploy.deploy(
runner.serviceProvider.cloudApiClient,
runner.serviceProvider.fileUploaderFactory,
logger: logger,
projectId: projectId,
projectDir: projectDirectory.path,
concurrency: concurrency,
dryRun: dryRun,
);
}