runWithOutput method
Future<void>
runWithOutput(
- Configuration<
AppStatusCommandOption> commandConfig, - 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),
);
}