runWithOutput method

  1. @override
Future<void> runWithOutput(
  1. Configuration<OptionDefinition> 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 commandConfig,
  final CommandOutput output,
) async {
  await renderCommand(
    output,
    operation: () async =>
        VersionOperations.currentVersion(runner.version.toString()),
    textOutputUi: const VersionTextUi(),
  );
}