toCloudRun function

List<String> toCloudRun(
  1. DeployCommand command
)

The gcloud run deploy command built from command.

Implementation

List<String> toCloudRun(DeployCommand command) {
  validateGcloudExtraArgs(command.extraArgs);
  return <String>[
    'gcloud',
    'run',
    'deploy',
    command.service,
    '--project',
    command.project,
    '--region',
    command.region,
    '--image',
    command.image,
    ...command.extraArgs,
  ];
}