runWithOutput method
Future<void>
runWithOutput(
- Configuration<
BuildSecretUnsetCommandConfig> commandConfig, - CommandOutput output
override
Runs this command with prepared configuration and output.
Subclasses should override this method.
Implementation
@override
Future<void> runWithOutput(
final Configuration<BuildSecretUnsetCommandConfig> commandConfig,
final CommandOutput output,
) async {
final projectId = commandConfig.value(
BuildSecretUnsetCommandConfig.projectId,
);
final name = commandConfig.value(BuildSecretUnsetCommandConfig.name);
await confirmToContinue(
output,
message: 'Are you sure you want to remove the build secret "$name"?',
defaultValue: false,
);
await renderCommand(
output,
operation: () => BuildsOperations.unsetBuildSecret(
runner.serviceProvider.cloudApiClient,
projectId: projectId,
name: name,
),
textOutputUi: const BuildSecretUnsetTextUi(),
);
}