getBasicOptions(), $this->getSkipOptions()); } /** * Basic options * * @return array */ private function getBasicOptions() { return [ new InputOption( self::FORCE_RUN, '-f', InputOption::VALUE_NONE, 'Deploy files in any mode.' ), new InputOption( self::STRATEGY, '-s', InputOption::VALUE_OPTIONAL, 'Deploy files using specified strategy.', 'quick' ), new InputOption( self::AREA, '-a', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Generate files only for the specified areas.', ['all'] ), new InputOption( self::EXCLUDE_AREA, null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Do not generate files for the specified areas.', ['none'] ), new InputOption( self::THEME, '-t', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Generate static view files for only the specified themes.', ['all'] ), new InputOption( self::EXCLUDE_THEME, null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Do not generate files for the specified themes.', ['none'] ), new InputOption( self::LANGUAGE, '-l', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Generate files only for the specified languages.', ['all'] ), new InputOption( self::EXCLUDE_LANGUAGE, null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Do not generate files for the specified languages.', ['none'] ), new InputOption( self::JOBS_AMOUNT, '-j', InputOption::VALUE_OPTIONAL, 'Enable parallel processing using the specified number of jobs.', self::DEFAULT_JOBS_AMOUNT ), new InputOption( self::SYMLINK_LOCALE, null, InputOption::VALUE_NONE, 'Create symlinks for the files of those locales, which are passed for deployment, ' . 'but have no customizations.' ), new InputOption( self::CONTENT_VERSION, null, InputArgument::OPTIONAL, 'Custom version of static content can be used if running deployment on multiple nodes ' . 'to ensure that static content version is identical and caching works properly.' ), new InputOption( self::REFRESH_CONTENT_VERSION_ONLY, null, InputOption::VALUE_NONE, 'Refreshing the version of static content only can be used to refresh static content ' . 'in browser cache and CDN cache.' ), new InputArgument( self::LANGUAGES_ARGUMENT, InputArgument::IS_ARRAY, 'Space-separated list of ISO-639 language codes for which to output static view files.' ), ]; } /** * Additional options * * Used to re-deploy specific types of static files * * @return array */ private function getSkipOptions() { return [ new InputOption( self::NO_JAVASCRIPT, null, InputOption::VALUE_NONE, 'Do not deploy JavaScript files.' ), new InputOption( self::NO_CSS, null, InputOption::VALUE_NONE, 'Do not deploy CSS files.' ), new InputOption( self::NO_LESS, null, InputOption::VALUE_NONE, 'Do not deploy LESS files.' ), new InputOption( self::NO_IMAGES, null, InputOption::VALUE_NONE, 'Do not deploy images.' ), new InputOption( self::NO_FONTS, null, InputOption::VALUE_NONE, 'Do not deploy font files.' ), new InputOption( self::NO_HTML, null, InputOption::VALUE_NONE, 'Do not deploy HTML files.' ), new InputOption( self::NO_MISC, null, InputOption::VALUE_NONE, 'Do not deploy files of other types (.md, .jbf, .csv, etc.).' ), new InputOption( self::NO_HTML_MINIFY, null, InputOption::VALUE_NONE, 'Do not minify HTML files.' ) ]; } }