runWithOutput method
Future<void>
runWithOutput(
- Configuration<
DbScheduleShowOption> commandConfig, - CommandOutput output
override
Runs this command with prepared configuration and output.
Subclasses should override this method.
Implementation
@override
Future<void> runWithOutput(
final Configuration<DbScheduleShowOption> commandConfig,
final CommandOutput output,
) async {
await renderCommand(
output,
operation: () => DbBackupOperations.getSchedule(
runner.serviceProvider.cloudApiClient,
projectId: commandConfig.value(DbScheduleShowOption.projectId),
),
textOutputUi: BackupScheduleShowTextUi(baseCommand: baseCommand),
jsonOutputUi: const BackupScheduleShowStructuredUi(
formatter: JsonOutputFormatter(),
),
yamlOutputUi: const BackupScheduleShowStructuredUi(
formatter: YamlOutputFormatter(),
),
);
}