runWithOutput method

  1. @override
Future<void> runWithOutput(
  1. Configuration<ProjectShowCommandOption> 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<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),
  );
}