runWithConfig method

  1. @override
Future<void> runWithConfig(
  1. Configuration<DeploymentsBuildLogOption> commandConfig
)
override

Runs this command with prepared configuration (options). Subclasses should override this method.

Implementation

@override
Future<void> runWithConfig(
  final Configuration<DeploymentsBuildLogOption> commandConfig,
) async {
  final projectId = commandConfig.value(DeploymentsBuildLogOption.projectId);
  final inUtc = commandConfig.value(DeploymentsBuildLogOption.utc);
  final deploymentArg = commandConfig.optionalValue(
    DeploymentsBuildLogOption.deploy,
  );

  await DeploymentCommands.fetchBuildLog(
    runner.serviceProvider.cloudApiClient,
    logger: logger,
    baseCommand: baseCommand,
    projectId: projectId,
    inUtc: inUtc,
    deploymentArg: deploymentArg,
  );
}