runWithConfig method

  1. @override
Future<void> runWithConfig(
  1. Configuration<MeCommandOption> commandConfig
)
override

Runs this command with prepared configuration (options). Subclasses should override this method.

Implementation

@override
Future<void> runWithConfig(
  final Configuration<MeCommandOption> commandConfig,
) async {
  final format = commandConfig.value(MeCommandOption.format);

  final output = CommandOutput(format: format, logger: logger);
  await renderCommand(
    output,
    operation: () => MeCommands.showCurrentUserOperation(
      runner.serviceProvider.cloudApiClient,
    ),
    textOutputUi: MeTextUi(),
  );
}