runWithOutput method
Future<void>
runWithOutput(
- Configuration<
ProjectShowCommandOption> commandConfig, - CommandOutput output
override
Runs this command with prepared configuration and output.
Subclasses should override this method.
Implementation
@override
Future<void> runWithOutput(
final Configuration<ProjectShowCommandOption> commandConfig,
final CommandOutput output,
) async {
final projectId = commandConfig.value(ProjectShowCommandOption.projectId);
final utc = commandConfig.value(ProjectShowCommandOption.utc);
await renderCommand(
output,
operation: () => ProjectCommands.showProjectOperation(
runner.serviceProvider.cloudApiClient,
projectId: projectId,
),
textOutputUi: ProjectShowTextUi(utc: utc),
);
}