runWithOutput method
Future<void>
runWithOutput(
- Configuration<
OptionDefinition> commandConfig, - 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 {
final projectId = commandConfig.value(ProjectDeleteOption.projectId);
await confirmToContinue(
output,
message: 'Are you sure you want to delete the project "$projectId"?',
defaultValue: false,
);
await renderCommand(
output,
operation: () => ProjectCommands.deleteProject(
runner.serviceProvider.cloudApiClient,
projectId: projectId,
),
textOutputUi: const ProjectDeleteTextUi(),
);
}