runWithConfig method
Runs this command with prepared configuration (options). Subclasses should override this method.
Implementation
@override
Future<void> runWithConfig(final Configuration commandConfig) async {
final specifiedProjectDir = globalConfiguration.projectDir;
final foundProjectDir =
specifiedProjectDir == null ? runner.selectProjectDirectory() : null;
final projectId = commandConfig.optionalValue(LaunchOption.projectId);
final enableDb = commandConfig.optionalValue(LaunchOption.enableDb);
final deploy = commandConfig.optionalValue(LaunchOption.deploy);
await Launch.launch(
runner.serviceProvider.cloudApiClient,
runner.serviceProvider.fileUploaderFactory,
logger: logger,
specifiedProjectDir: specifiedProjectDir?.path,
foundProjectDir: foundProjectDir,
projectId: projectId,
enableDb: enableDb,
performDeploy: deploy,
);
}