in src/Utils/Flex/FlexExecCommand.php [55:105]
protected function configure()
{
$this
->setName('run')
->setDescription('Execute a command with the deployed image')
->addOption(
'service',
's',
InputOption::VALUE_REQUIRED,
'Service name for the deployed image, defaults to `default`, '
. 'ignored when the `--image` option is specificed'
)
->addOption(
'target-version',
't',
InputOption::VALUE_REQUIRED,
'Version name for the deployed image, ignored when the '
. '`--image` option is specificed. If this option is not '
. 'specified, it will automatically pick the latest deployed '
. 'version'
)
->addOption(
'image',
'i',
InputOption::VALUE_REQUIRED,
'Docker image name'
)
->addOption(
'cloud-sql-instances',
null,
InputOption::VALUE_REQUIRED,
'Comma separated cloud sql instance connection names'
)
->addOption(
'preserve-workdir',
'p',
InputOption::VALUE_NONE,
'Preserve the temporary workdir'
)
->addOption(
'workdir',
'd',
InputOption::VALUE_NONE,
'Temporary workdir'
)
->addArgument(
'commands',
InputArgument::IS_ARRAY | InputArgument::REQUIRED,
'Commands to execute'
);
}