runWithOutput method

  1. @override
Future<void> runWithOutput(
  1. Configuration<AppLogCommandOption> commandConfig,
  2. CommandOutput output
)
override

Runs this command with prepared configuration and output.

Subclasses should override this method.

Implementation

@override
Future<void> runWithOutput(
  final Configuration<AppLogCommandOption> commandConfig,
  final CommandOutput output,
) async {
  final projectId = commandConfig.value(AppLogCommandOption.projectId);
  final uploadId = commandConfig.value(AppLogCommandOption.uploadId);
  final platform = commandConfig.value(AppLogCommandOption.platform);

  await renderCommand(
    output,
    operation: () => AppOperations.followBuildLog(
      runner.serviceProvider.cloudApiClient,
      projectId: projectId,
      uploadId: UuidValue.withValidation(uploadId),
      platform: platform,
    ),
    textOutputUi: const AppLogTextUi(),
  );
}