9 use Symfony\Component\Console\Input\InputOption;
10 use Symfony\Component\Console\Input\InputArgument;
146 return array_merge($this->getBasicOptions(), $this->getSkipOptions());
154 private function getBasicOptions()
160 InputOption::VALUE_NONE,
161 'Deploy files in any mode.' 166 InputOption::VALUE_OPTIONAL,
167 'Deploy files using specified strategy.',
173 InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL,
174 'Generate files only for the specified areas.',
180 InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL,
181 'Do not generate files for the specified areas.',
187 InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL,
188 'Generate static view files for only the specified themes.',
194 InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL,
195 'Do not generate files for the specified themes.',
201 InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL,
202 'Generate files only for the specified languages.',
206 self::EXCLUDE_LANGUAGE,
208 InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL,
209 'Do not generate files for the specified languages.',
215 InputOption::VALUE_OPTIONAL,
216 'Enable parallel processing using the specified number of jobs.',
217 self::DEFAULT_JOBS_AMOUNT
220 self::SYMLINK_LOCALE,
222 InputOption::VALUE_NONE,
223 'Create symlinks for the files of those locales, which are passed for deployment, ' 224 .
'but have no customizations.' 227 self::CONTENT_VERSION,
229 InputArgument::OPTIONAL,
230 'Custom version of static content can be used if running deployment on multiple nodes ' 231 .
'to ensure that static content version is identical and caching works properly.' 234 self::REFRESH_CONTENT_VERSION_ONLY,
236 InputOption::VALUE_NONE,
237 'Refreshing the version of static content only can be used to refresh static content ' 238 .
'in browser cache and CDN cache.' 241 self::LANGUAGES_ARGUMENT,
242 InputArgument::IS_ARRAY,
243 'Space-separated list of ISO-636 language codes for which to output static view files.' 255 private function getSkipOptions()
261 InputOption::VALUE_NONE,
262 'Do not deploy JavaScript files.' 267 InputOption::VALUE_NONE,
268 'Do not deploy CSS files.' 273 InputOption::VALUE_NONE,
274 'Do not deploy LESS files.' 279 InputOption::VALUE_NONE,
280 'Do not deploy images.' 285 InputOption::VALUE_NONE,
286 'Do not deploy font files.' 291 InputOption::VALUE_NONE,
292 'Do not deploy HTML files.' 297 InputOption::VALUE_NONE,
298 'Do not deploy files of other types (.md, .jbf, .csv, etc.).' 301 self::NO_HTML_MINIFY,
303 InputOption::VALUE_NONE,
304 'Do not minify HTML files.'
const DEFAULT_JOBS_AMOUNT
const REFRESH_CONTENT_VERSION_ONLY