runWithOutput method

  1. @override
Future<void> runWithOutput(
  1. Configuration<SettingsUnsetOption> 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<SettingsUnsetOption> commandConfig,
  final CommandOutput output,
) async {
  final name = commandConfig.value(SettingsUnsetOption.name);

  await renderCommand(
    output,
    operation: () => SettingsOperations.unsetSetting(
      runner.serviceProvider.scloudSettings,
      name: name,
    ),
    textOutputUi: const SettingsUnsetTextUi(),
  );
}