runWithOutput method
Future<void>
runWithOutput(
- Configuration<
AppPublishCommandOption> commandConfig, - CommandOutput output
override
Runs this command with prepared configuration and output.
Subclasses should override this method.
Implementation
@override
Future<void> runWithOutput(
final Configuration<AppPublishCommandOption> commandConfig,
final CommandOutput output,
) async {
final projectId = commandConfig.value(AppPublishCommandOption.projectId);
final appDir = commandConfig.optionalValue(AppPublishCommandOption.appDir);
final platforms = commandConfig.optionalValue(
AppPublishCommandOption.platforms,
);
final awaitBuilds = commandConfig.value(AppPublishCommandOption.wait);
final appDirectory = appDir ?? _configuredOrWorkspaceAppDirectory();
logger.debug('App directory is: ${appDirectory.path}');
await AppPublish.publish(
runner.serviceProvider.cloudApiClient,
runner.serviceProvider.fileUploaderFactory,
logger: logger,
baseCommand: baseCommand,
projectId: projectId,
appDirectory: appDirectory,
defaultPlatforms: AppPublishPlatformsOption.supportedPlatforms,
platforms: platforms?.toSet(),
awaitBuilds: awaitBuilds,
);
}