runWithOutput method

  1. @override
Future<void> runWithOutput(
  1. Configuration<AppStatusCommandOption> 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<AppStatusCommandOption> commandConfig,
  final CommandOutput output,
) async {
  final projectId = commandConfig.value(AppStatusCommandOption.projectId);
  final inUtc = commandConfig.value(AppStatusCommandOption.utc);

  await renderCommand(
    output,
    operation: () => AppOperations.getStatus(
      runner.serviceProvider.cloudApiClient,
      projectId: projectId,
    ),
    textOutputUi: AppStatusTextUi(utc: inUtc, baseCommand: baseCommand),
  );
}