fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

mattmc3fish_indent: Cleanup all *.fish files not in tests9eee1b449

master
34.9 KiB647 linesraw
1function __fish_print_magento_url_protocols -d "Shows all available URL protocols"
2    echo http://
3    echo https://
4end
5
6function __fish_print_magento_mysql_engines
7    echo MyISAM\t"MyISAM storage engine"
8    echo InnoDB\t"Supports transactions, row-level locking, and foreign keys"
9    echo BLACKHOLE\t"/dev/null storage engine (anything you write to it disappears)"
10    echo MEMORY\t"Hash based, stored in memory, useful for temporary tables"
11    echo CSV\t"CSV storage engine"
12    echo ARCHIVE\t"Archive storage engine"
13end
14
15###
16
17function __fish_print_magento_modules -d "Lists all Magento modules"
18    set -l config_path app/etc/config.php
19    test -f $config_path; or return
20
21    set -l in_modules 0
22    cat $config_path | while read -l line
23        if test "$in_modules" -eq 0
24            if string match -rq '[\'"]modules[\'"]\s*=>.*\[' -- $line
25                set in_modules 1
26            end
27        else
28            if string match -rq '^\s*]\s*,\s*$' -- $line
29                break
30            end
31            string replace -rf '\s*[\'"](.*?)[\'"]\s*=>.*' '$1' -- $line
32        end
33    end
34end
35
36function __fish_print_magento_i18n_packing_modes -d "Shows all available packing modes"
37    echo replace\t"replace language pack by new one"
38    echo merge\t"merge language packages"
39end
40
41function __fish_print_magento_available_ides -d "Shows all IDEs supported by magento"
42    echo phpstorm\t"JetBrains PhpStorm"
43end
44
45function __fish_print_magento_available_tests -d "Shows all available magento tests"
46    echo all\t"all tests"
47    echo unit\t"unit tests only"
48    echo integration\t"integration tests only"
49    echo integration-all\t"all integration tests"
50    echo static\t"static file tests only"
51    echo static-all\t"all static file tests"
52    echo integrity\t"integrity tests only"
53    echo legacy\t"legacy tests only"
54    echo default\t"all tests"
55end
56
57function __fish_print_magento_theme_areas -d "Shows all available magento theme areas"
58    echo frontend\t"Frontend"
59    echo adminhtml\t"Backend"
60end
61
62function __fish_print_magento_languages -d "Shows all existing magento languages"
63    echo af_ZA\t"Afrikaans (South Africa)"
64    echo sq_AL\t"Albanian (Albania)"
65    echo ar_DZ\t"Arabic (Algeria)"
66    echo ar_EG\t"Arabic (Egypt)"
67    echo ar_KW\t"Arabic (Kuwait)"
68    echo ar_MA\t"Arabic (Morocco)"
69    echo ar_SA\t"Arabic (Saudi Arabia)"
70    echo az_Latn_AZ\t"Azerbaijani (Azerbaijan)"
71    echo eu_ES\t"Basque (Spain)"
72    echo be_BY\t"Belarusian (Belarus)"
73    echo bn_BD\t"Bengali (Bangladesh)"
74    echo bs_Latn_BA\t"Bosnian (Bosnia and Herzegovina)"
75    echo bg_BG\t"Bulgarian (Bulgaria)"
76    echo ca_ES\t"Catalan (Spain)"
77    echo zh_Hans_CN\t"Chinese (China)"
78    echo zh_Hant_HK\t"Chinese (Hong Kong SAR China)"
79    echo zh_Hant_TW\t"Chinese (Taiwan)"
80    echo hr_HR\t"Croatian (Croatia)"
81    echo cs_CZ\t"Czech (Czech Republic)"
82    echo da_DK\t"Danish (Denmark)"
83    echo nl_BE\t"Dutch (Belgium)"
84    echo nl_NL\t"Dutch (Netherlands)"
85    echo en_AU\t"English (Australia)"
86    echo en_CA\t"English (Canada)"
87    echo en_IE\t"English (Ireland)"
88    echo en_NZ\t"English (New Zealand)"
89    echo en_GB\t"English (United Kingdom)"
90    echo en_US\t"English (United States)"
91    echo et_EE\t"Estonian (Estonia)"
92    echo fil_PH\t"Filipino (Philippines)"
93    echo fi_FI\t"Finnish (Finland)"
94    echo fr_BE\t"French (Belgium)"
95    echo fr_CA\t"French (Canada)"
96    echo fr_FR\t"French (France)"
97    echo gl_ES\t"Galician (Spain)"
98    echo ka_GE\t"Georgian (Georgia)"
99    echo de_AT\t"German (Austria)"
100    echo de_DE\t"German (Germany)"
101    echo de_CH\t"German (Switzerland)"
102    echo el_GR\t"Greek (Greece)"
103    echo gu_IN\t"Gujarati (India)"
104    echo he_IL\t"Hebrew (Israel)"
105    echo hi_IN\t"Hindi (India)"
106    echo hu_HU\t"Hungarian (Hungary)"
107    echo is_IS\t"Icelandic (Iceland)"
108    echo id_ID\t"Indonesian (Indonesia)"
109    echo it_IT\t"Italian (Italy)"
110    echo it_CH\t"Italian (Switzerland)"
111    echo ja_JP\t"Japanese (Japan)"
112    echo km_KH\t"Khmer (Cambodia)"
113    echo ko_KR\t"Korean (South Korea)"
114    echo lo_LA\t"Lao (Laos)"
115    echo lv_LV\t"Latvian (Latvia)"
116    echo lt_LT\t"Lithuanian (Lithuania)"
117    echo mk_MK\t"Macedonian (Macedonia)"
118    echo ms_Latn_MY\t"Malay (Malaysia)"
119    echo mn_Cyrl_MN\t"Mongolian (Mongolia)"
120    echo nb_NO\t"Norwegian Bokmål (Norway)"
121    echo nn_NO\t"Norwegian Nynorsk (Norway)"
122    echo fa_IR\t"Persian (Iran)"
123    echo pl_PL\t"Polish (Poland)"
124    echo pt_BR\t"Portuguese (Brazil)"
125    echo pt_PT\t"Portuguese (Portugal)"
126    echo ro_RO\t"Romanian (Romania)"
127    echo ru_RU\t"Russian (Russia)"
128    echo sr_Cyrl_RS\t"Serbian (Serbia)"
129    echo sk_SK\t"Slovak (Slovakia)"
130    echo sl_SI\t"Slovenian (Slovenia)"
131    echo es_AR\t"Spanish (Argentina)"
132    echo es_CL\t"Spanish (Chile)"
133    echo es_CO\t"Spanish (Colombia)"
134    echo es_CR\t"Spanish (Costa Rica)"
135    echo es_MX\t"Spanish (Mexico)"
136    echo es_PA\t"Spanish (Panama)"
137    echo es_PE\t"Spanish (Peru)"
138    echo es_ES\t"Spanish (Spain)"
139    echo es_VE\t"Spanish (Venezuela)"
140    echo sw_KE\t"Swahili (Kenya)"
141    echo sv_SE\t"Swedish (Sweden)"
142    echo th_TH\t"Thai (Thailand)"
143    echo tr_TR\t"Turkish (Turkey)"
144    echo uk_UA\t"Ukrainian (Ukraine)"
145    echo vi_VN\t"Vietnamese (Vietnam)"
146    echo cy_GB\t"Welsh (United Kingdom)"
147end
148
149function __fish_print_magento_source_theme_file_types -d "Shows all available source theme file types"
150    echo less\t"Currently only LESS is supported"
151end
152
153function __fish_print_magento_deploy_modes -d "Shows all available deploy modes"
154    echo developer\t"Development mode"
155    echo production\t"Production mode"
156end
157
158function __fish_print_magento_cache_types -d "Shows all available cache types"
159    echo config\t"Configuration"
160    echo layout\t"Layout"
161    echo block_html\t"Block HTML output"
162    echo collections\t"Collections data"
163    echo db_ddl\t"Database schema"
164    echo eav\t"Entity attribute value (EAV)"
165    echo full_page\t"Page cache"
166    echo reflection\t"Reflection"
167    echo translate\t"Translations"
168    echo config_integration\t"Integration configuration"
169    echo config_integration_api\t"Integration API configuration"
170    echo config_webservice\t"Web services configuration"
171end
172
173function __fish_print_magento_verbosity_levels -d "Shows all available verbosity levels"
174    echo 1\t"normal output"
175    echo 2\t"more verbose output"
176    echo 3\t"debug"
177end
178
179function __fish_print_magento_list_formats -d "Shows all available output formats"
180    echo txt\t"Print as plain text"
181    echo json\t"Print as JSON"
182    echo xml\t"Print as XML"
183end
184
185function __fish_print_magento_commands_list -d "Lists magento commands"
186    set -l commands help list admin:user:create admin:user:unlock \
187        app:config:dump cache:clean cache:disable cache:enable cache:flush \
188        cache:status catalog:images:resize catalog:product:attributes:cleanup \
189        cron:run customer:hash:upgrade deploy:mode:set deploy:mode:show \
190        dev:source-theme:deploy dev:tests:run dev:urn-catalog:generate \
191        dev:xml:convert i18n:collect-phrases i18n:pack i18n:uninstall \
192        indexer:info indexer:reindex indexer:reset indexer:set-mode \
193        indexer:show-mode indexer:status info:adminuri info:backups:list \
194        info:currency:list info:dependencies:show-framework \
195        info:dependencies:show-modules info:dependencies:show-modules-circular \
196        info:language:list info:timezone:list maintenance:allow-ips \
197        maintenance:disable maintenance:enable maintenance:status module:disable \
198        module:enable module:status module:uninstall sampledata:deploy \
199        sampledata:remove sampledata:reset setup:backup setup:config:set \
200        setup:cron:run setup:db-data:upgrade setup:db-schema:upgrade \
201        setup:db:status setup:di:compile setup:install \
202        setup:performance:generate-fixtures setup:rollback \
203        setup:static-content:deploy setup:store-config:set \
204        setup:uninstall setup:upgrade theme:uninstall
205    for i in $commands
206        echo $i
207    end
208end
209
210#########################################################
211
212function __fish_magento_not_in_command -d "Checks that prompt is not inside of magento command"
213    set -l cmd (commandline -xpc)
214    for i in $cmd
215        if contains -- $i (__fish_print_magento_commands_list)
216            return 1
217        end
218    end
219    return 0
220end
221
222#########################################################
223
224# Perforce command is a single word that comes either as first argument
225# or directly after global options.
226# To test whether we're in command, it's enough that a command will appear
227# in the arguments, even though if more than a single command is specified,
228# p4 will complain.
229function __fish_magento_is_using_command -d "Checks if prompt is in a specific command"
230    if contains -- $argv[1] (commandline -xpc)
231        return 0
232    end
233    return 1
234end
235
236#########################################################
237
238function __fish_magento_register_command -d "Adds a completion for a specific command"
239    complete -c magento -n __fish_magento_not_in_command -a $argv[1] $argv[2..-1]
240end
241
242#########################################################
243
244function __fish_magento_register_command_option -d "Adds a specific option for a command"
245    complete -c magento -n "__fish_magento_is_using_command $argv[1]" $argv[2..-1]
246end
247
248#########################################################
249
250function __fish_magento_parameter_missing -d "Checks if a parameter has been given already"
251    if __fish_contains_opt $argv
252        return 1
253    end
254
255    return 0
256end
257
258##################
259# Global options #
260##################
261complete -x -c magento -s h -l help -d "Show help for a command"
262complete -x -c magento -s q -l quiet -d "Do not output any message"
263complete -x -c magento -s v -l verbose -a "(__fish_print_magento_verbosity_levels)" -d "Increase verbosity: 1 for normal, 2 for verbose and 3 for debug"
264complete -x -c magento -o -vv
265complete -x -c magento -o vvv
266complete -x -c magento -s V -l version -d "Show version"
267complete -x -c magento -l ansi -d "Force colored output"
268complete -x -c magento -l no-ansi -d "Disable colored output"
269complete -x -c magento -s n -l no-interaction -d "Don't ask any interactive question"
270
271################
272# Sub-Commands #
273################
274__fish_magento_register_command help -a "(__fish_print_magento_commands_list)" -d "Show help for a command"
275__fish_magento_register_command list -d "List commands"
276
277__fish_magento_register_command admin:user:create -x -d "Create admin account"
278__fish_magento_register_command admin:user:unlock -x -d "Unlock admin account"
279
280__fish_magento_register_command app:config:dump -d "Create application dump"
281
282__fish_magento_register_command cache:clean -d "Clean cache types"
283__fish_magento_register_command cache:disable -d "Disable cache types"
284__fish_magento_register_command cache:enable -d "Enable cache types"
285__fish_magento_register_command cache:flush -d "Flush cache storage used by cache types"
286__fish_magento_register_command cache:status -d "Check cache status"
287
288__fish_magento_register_command catalog:images:resize -d "Create resized product images"
289__fish_magento_register_command catalog:product:attributes:cleanup -d "Remove unused product attributes"
290
291__fish_magento_register_command cron:run -d "Run jobs by schedule"
292
293__fish_magento_register_command customer:hash:upgrade -d "Upgrade customer's hashes according to latest algorithm"
294
295__fish_magento_register_command deploy:mode:set -d "Set application mode"
296__fish_magento_register_command deploy:mode:show -d "Show current application mode"
297
298__fish_magento_register_command dev:source-theme:deploy -d "Collect and publish source files for theme"
299__fish_magento_register_command dev:tests:run -d "Run tests"
300__fish_magento_register_command dev:urn-catalog:generate -d "Generate catalog of URNs to *.xsd mappings for IDEs to highlight XML"
301__fish_magento_register_command dev:xml:convert -d "Convert XML file using XSL stylesheets"
302
303__fish_magento_register_command i18n:collect-phrases -d "Discover phrases in the codebase"
304__fish_magento_register_command i18n:pack -d "Save language package"
305__fish_magento_register_command i18n:uninstall -d "Uninstall language packages"
306
307__fish_magento_register_command indexer:info -d "Show allowed indexers"
308__fish_magento_register_command indexer:reindex -d "Reindex data"
309__fish_magento_register_command indexer:reset -d "Reset indexer status to invalid"
310__fish_magento_register_command indexer:set-mode -d "Set index mode type"
311__fish_magento_register_command indexer:show-mode -d "Show index mode"
312__fish_magento_register_command indexer:status -d "Show status of indexer"
313
314__fish_magento_register_command info:adminuri -d "Show Magento Admin URI"
315__fish_magento_register_command info:backups:list -d "Show available backup files"
316__fish_magento_register_command info:currency:list -d "Show available currencies"
317__fish_magento_register_command info:dependencies:show-framework -d "Show dependencies on Magento framework"
318__fish_magento_register_command info:dependencies:show-modules -d "Show dependencies between modules"
319__fish_magento_register_command info:dependencies:show-modules-circular -d "Show circular dependencies between modules"
320__fish_magento_register_command info:language:list -d "Show available languages"
321__fish_magento_register_command info:timezone:list -d "Show available timezones"
322
323__fish_magento_register_command maintenance:allow-ips -d "Set maintenance mode exempt IPs"
324__fish_magento_register_command maintenance:disable -d "Disable maintenance mode"
325__fish_magento_register_command maintenance:enable -d "Enable maintenance mode"
326__fish_magento_register_command maintenance:status -d "Show maintenance mode status"
327
328__fish_magento_register_command module:disable -d "Disable specified modules"
329__fish_magento_register_command module:enable -d "Enable specified modules"
330__fish_magento_register_command module:status -d "Show status of modules"
331__fish_magento_register_command module:uninstall -d "Uninstall modules installed by composer"
332
333__fish_magento_register_command sampledata:deploy -d "Deploy sample data modules"
334__fish_magento_register_command sampledata:remove -d "Remove sample data packages"
335__fish_magento_register_command sampledata:reset -d "Reset sample data modules for re-installation"
336
337__fish_magento_register_command setup:backup -d "Take backup of application code base, media and database"
338__fish_magento_register_command setup:config:set -d "Create or modifies the deployment configuration"
339__fish_magento_register_command setup:cron:run -d "Run cron job scheduled for setup application"
340__fish_magento_register_command setup:db-data:upgrade -d "Install and upgrades data in the DB"
341__fish_magento_register_command setup:db-schema:upgrade -d "Install and upgrade the DB schema"
342__fish_magento_register_command setup:db:status -d "Check if DB schema or data requires upgrade"
343__fish_magento_register_command setup:di:compile -d "Generate DI configuration and all missing classes that can be auto-generated"
344__fish_magento_register_command setup:install -d "Install Magento application"
345__fish_magento_register_command setup:performance:generate-fixtures -d "Generate fixtures"
346__fish_magento_register_command setup:rollback -d "Roll back Magento Application codebase, media and database"
347__fish_magento_register_command setup:static-content:deploy -d "Deploy static view files"
348__fish_magento_register_command setup:store-config:set -d "Install store configuration"
349__fish_magento_register_command setup:uninstall -d "Uninstall Magento application"
350__fish_magento_register_command setup:upgrade -d "Upgrade Magento application, DB data, and schema"
351
352__fish_magento_register_command theme:uninstall -d "Uninstall theme"
353
354#
355# help
356#
357__fish_magento_register_command_option help -x -a "(__fish_print_magento_commands_list)" -d "Show help for a command"
358
359#
360# list
361#
362__fish_magento_register_command_option list -f -l xml -d "Output as XML"
363__fish_magento_register_command_option list -f -l raw -d "Output as plaintext"
364__fish_magento_register_command_option list -f -l format -a "(__fish_print_magento_list_formats)" -d "Output other formats (default: txt)"
365
366#
367# admin:user:create
368#
369__fish_magento_register_command_option admin:user:create -n "__fish_magento_parameter_missing admin-user" -f -a --admin-user -d "(Required) Admin user"
370__fish_magento_register_command_option admin:user:create -n "__fish_magento_parameter_missing admin-password" -f -a --admin-password -d "(Required) Admin password"
371__fish_magento_register_command_option admin:user:create -n "__fish_magento_parameter_missing admin-email" -f -a --admin-email -d "(Required) Admin email"
372__fish_magento_register_command_option admin:user:create -n "__fish_magento_parameter_missing admin-firstname" -f -a --admin-firstname -d "(Required) Admin first name"
373__fish_magento_register_command_option admin:user:create -n "__fish_magento_parameter_missing admin-lastname" -f -a --admin-lastname -d "(Required) Admin last name"
374__fish_magento_register_command_option admin:user:create -f -r -l admin-user -d "(Required) Admin user"
375__fish_magento_register_command_option admin:user:create -f -r -l admin-password -d "(Required) Admin password"
376__fish_magento_register_command_option admin:user:create -f -r -l admin-email -d "(Required) Admin email"
377__fish_magento_register_command_option admin:user:create -f -r -l admin-firstname -d "(Required) Admin first name"
378__fish_magento_register_command_option admin:user:create -f -r -l admin-lastname -d "(Required) Admin last name"
379__fish_magento_register_command_option admin:user:create -f -l magento-init-params -d "Add to any command to customize Magento initialization parameters"
380
381#
382# admin:user:unlock
383#
384__fish_magento_register_command_option admin:user:unlock -f -d "Admin user to unlock"
385
386#
387# cache:clean
388#
389__fish_magento_register_command_option cache:clean -f -a "(__fish_print_magento_cache_types)" -d "Space-separated list of cache types or omit for all"
390__fish_magento_register_command_option cache:clean -f -l bootstrap -d "Add or override parameters of the bootstrap"
391
392#
393# cache:enable
394#
395__fish_magento_register_command_option cache:enable -f -a "(__fish_print_magento_cache_types)" -d "Space-separated list of cache types or omit for all"
396__fish_magento_register_command_option cache:enable -f -l bootstrap -d "Add or override parameters of the bootstrap"
397
398#
399# cache:disable
400#
401__fish_magento_register_command_option cache:disable -f -a "(__fish_print_magento_cache_types)" -d "Space-separated list of cache types or omit for all"
402__fish_magento_register_command_option cache:disable -f -l bootstrap -d "Add or override parameters of the bootstrap"
403
404#
405# cache:status
406#
407__fish_magento_register_command_option cache:status -f -l bootstrap -d "Add or override parameters of the bootstrap"
408
409#
410# cron:run
411#
412__fish_magento_register_command_option cron:run -f -l group -d "Run jobs only from specified group"
413__fish_magento_register_command_option cron:run -f -l bootstrap -d "Add or override parameters of the bootstrap"
414
415#
416# deploy:mode:set
417#
418__fish_magento_register_command_option deploy:mode:set -f -a "(__fish_print_magento_deploy_modes)" -d 'Application mode to set. Available are "developer" or "production"'
419__fish_magento_register_command_option deploy:mode:set -f -s s -l skip-compilation -d "Skip regeneration of static content (generated code, preprocessed CSS, assets)"
420
421#
422# dev:source-theme:deploy
423#
424__fish_magento_register_command_option dev:source-theme:deploy -d 'Files to pre-process (file should be specified without extension) (default: "css/styles-m","css/styles-l")'
425__fish_magento_register_command_option dev:source-theme:deploy -f -l type -a "(__fish_print_magento_source_theme_file_types)" -d 'Type of source files (default: "less")'
426__fish_magento_register_command_option dev:source-theme:deploy -f -l locale -a "(__fish_print_magento_languages)" -d 'Locale (default: "en_US")'
427__fish_magento_register_command_option dev:source-theme:deploy -f -l area -a "(__fish_print_magento_theme_areas)" -d 'Area (default: "frontend")'
428__fish_magento_register_command_option dev:source-theme:deploy -l theme -d 'Theme [Vendor/theme] (default: "Magento/luma")'
429
430#
431# dev:tests:run
432#
433__fish_magento_register_command_option dev:tests:run -f -a "(__fish_print_magento_available_tests)" -d 'Type of test to run (default: "default")'
434
435#
436# dev:urn-catalog:generate
437#
438__fish_magento_register_command_option dev:urn-catalog:generate -f -l ide -a "(__fish_print_magento_available_ides)" -d 'Catalog generation format. Supported: [phpstorm] (default: "phpstorm")'
439
440#
441# dev:xml:convert
442#
443__fish_magento_register_command_option dev:xml:convert -s o -l overwrite -d 'Overwrite XML file'
444
445#
446# i18n:collect-phrases
447#
448__fish_magento_register_command_option i18n:collect-phrases -s o -l output -d 'Path (including filename) to an output file. With no file specified, defaults to stdout'
449__fish_magento_register_command_option i18n:collect-phrases -f -s m -l magento -d 'Use --magento to parse current Magento codebase. Omit parameter if a directory is specified'
450
451#
452# i18n:pack
453#
454__fish_magento_register_command_option i18n:pack -f -s m -l mode -a "(__fish_print_magento_i18n_packing_modes)" -d 'Save mode for dictionary (default: "replace")'
455__fish_magento_register_command_option i18n:pack -s d -l allow-duplicates -d 'Use --allow-duplicates to allow saving duplicates of translate. Otherwise omit parameter'
456
457#
458# i18n:uninstall
459#
460__fish_magento_register_command_option i18n:uninstall -f -s b -l backup-code -d 'Take code and configuration files backup (excluding temporary files)'
461__fish_magento_register_command_option i18n:uninstall -f -a "(__fish_print_magento_languages)" -d 'Language package name'
462
463#
464# info:dependencies:show-framework
465#
466__fish_magento_register_command_option info:dependencies:show-framework -f -s o -l output -d 'Report filename (default: "framework-dependencies.csv")'
467
468#
469# info:dependencies:show-modules
470#
471__fish_magento_register_command_option info:dependencies:show-modules -f -s o -l output -d 'Report filename (default: "modules-dependencies.csv")'
472
473#
474# info:dependencies:show-modules-circular
475#
476__fish_magento_register_command_option info:dependencies:show-modules-circular -f -s o -l output -d 'Report filename (default: "modules-circular-dependencies.csv")'
477
478#
479# maintenance:allow-ips
480#
481__fish_magento_register_command_option maintenance:allow-ips -l none -d 'Clear allowed IP addresses'
482
483#
484# maintenance:disable
485#
486__fish_magento_register_command_option maintenance:disable -l ip -d "Allowed IP addresses (use 'none' to clear list)"
487
488#
489# maintenance:enable
490#
491__fish_magento_register_command_option maintenance:enable -l ip -d "Allowed IP addresses (use 'none' to clear list)"
492
493#
494# module:disable
495#
496__fish_magento_register_command_option module:disable -f -a "(__fish_print_magento_modules)" -d "Module name"
497__fish_magento_register_command_option module:disable -s f -l force -d "Bypass dependencies check"
498__fish_magento_register_command_option module:disable -l all -d "Disable all modules"
499__fish_magento_register_command_option module:disable -s c -l clear-static-content -d "Clear generated static view files. Necessary if module(s) have static view files"
500
501#
502# module:enable
503#
504__fish_magento_register_command_option module:enable -f -a "(__fish_print_magento_modules)" -d "Module name"
505__fish_magento_register_command_option module:enable -f -s f -l force -d "Bypass dependencies check"
506__fish_magento_register_command_option module:enable -f -l all -d "Enable all modules"
507__fish_magento_register_command_option module:enable -f -s c -l clear-static-content -d "Clear generated static view files. Necessary if module(s) have static view files"
508
509#
510# module:status
511#
512__fish_magento_register_command_option module:status -f -a "(__fish_print_magento_modules)" -d "Module name"
513__fish_magento_register_command_option module:status -f -l enabled -d "Print only enabled modules"
514__fish_magento_register_command_option module:status -f -l disabled -d "Print only disabled modules"
515
516#
517# module:uninstall
518#
519__fish_magento_register_command_option module:uninstall -f -a "(__fish_print_magento_modules)" -d "Module name"
520__fish_magento_register_command_option module:uninstall -f -s r -l remove-data -d "Remove data installed by module(s)"
521__fish_magento_register_command_option module:uninstall -f -l backup-code -d "Take code and configuration files backup (excluding temporary files)"
522__fish_magento_register_command_option module:uninstall -f -l backup-media -d "Take media backup"
523__fish_magento_register_command_option module:uninstall -f -l backup-db -d "Take complete database backup"
524__fish_magento_register_command_option module:uninstall -f -s c -l clear-static-content -d "Clear generated static view files. Necessary if module(s) have static view files"
525
526#
527# setup:backup
528#
529__fish_magento_register_command_option setup:backup -f -l code -d "Take code and configuration files backup (excluding temporary files)"
530__fish_magento_register_command_option setup:backup -f -l media -d "Take media backup"
531__fish_magento_register_command_option setup:backup -f -l db -d "Take complete database backup"
532
533#
534# setup:config:set
535#
536__fish_magento_register_command_option setup:config:set -f -l backend-frontname -d "Backend frontname (will be autogenerated if missing)"
537__fish_magento_register_command_option setup:config:set -f -l key -d "Encryption key"
538__fish_magento_register_command_option setup:config:set -f -l session-save -d "Session save handler"
539__fish_magento_register_command_option setup:config:set -f -l definition-format -d "Type of definitions used by Object Manager"
540__fish_magento_register_command_option setup:config:set -f -l db-host -d "Database server host"
541__fish_magento_register_command_option setup:config:set -f -l db-name -d "Database name"
542__fish_magento_register_command_option setup:config:set -f -l db-user -d "Database server username"
543__fish_magento_register_command_option setup:config:set -f -l db-engine -d "Database server engine" -a "(__fish_print_magento_mysql_engines)"
544__fish_magento_register_command_option setup:config:set -f -l db-password -d "Database server password"
545__fish_magento_register_command_option setup:config:set -f -l db-prefix -d "Database table prefix"
546__fish_magento_register_command_option setup:config:set -f -l db-model -d "Database type"
547__fish_magento_register_command_option setup:config:set -f -l db-init-statements -d "Database initial set of commands"
548__fish_magento_register_command_option setup:config:set -f -l skip-db-validation -s s -d "If specified, then db connection validation will be skipped"
549__fish_magento_register_command_option setup:config:set -f -l http-cache-hosts -d "HTTP cache hosts"
550
551#
552# setup:install
553#
554__fish_magento_register_command_option setup:install -n "__fish_magento_parameter_missing admin-user" -f -a --admin-user -d "(Required) Admin user"
555__fish_magento_register_command_option setup:install -n "__fish_magento_parameter_missing admin-password" -f -a --admin-password -d "(Required) Admin password"
556__fish_magento_register_command_option setup:install -n "__fish_magento_parameter_missing admin-email" -f -a --admin-email -d "(Required) Admin email"
557__fish_magento_register_command_option setup:install -n "__fish_magento_parameter_missing admin-firstname" -f -a --admin-firstname -d "(Required) Admin first name"
558__fish_magento_register_command_option setup:install -n "__fish_magento_parameter_missing admin-lastname" -f -a --admin-lastname -d "(Required) Admin last name"
559__fish_magento_register_command_option setup:install -f -l backend-frontname -d "Backend frontname (will be autogenerated if missing)"
560__fish_magento_register_command_option setup:install -f -l key -d "Encryption key"
561__fish_magento_register_command_option setup:install -f -l session-save -d "Session save handler"
562__fish_magento_register_command_option setup:install -f -l definition-format -d "Type of definitions used by Object Manager"
563__fish_magento_register_command_option setup:install -f -l db-host -d "Database server host"
564__fish_magento_register_command_option setup:install -f -l db-name -d "Database name"
565__fish_magento_register_command_option setup:install -f -l db-user -d "Database server username"
566__fish_magento_register_command_option setup:install -f -l db-engine -d "Database server engine" -a "(__fish_print_magento_mysql_engines)"
567__fish_magento_register_command_option setup:install -f -l db-password -d "Database server password"
568__fish_magento_register_command_option setup:install -f -l db-prefix -d "Database table prefix"
569__fish_magento_register_command_option setup:install -f -l db-model -d "Database type"
570__fish_magento_register_command_option setup:install -f -l db-init-statements -d "Database initial set of commands"
571__fish_magento_register_command_option setup:install -f -l skip-db-validation -s s -d "Skip database connection validation"
572__fish_magento_register_command_option setup:install -f -l http-cache-hosts -d "HTTP cache hosts"
573__fish_magento_register_command_option setup:install -f -l base-url -a "(__fish_print_magento_url_protocols)" -d "URL the store is supposed to be available at"
574__fish_magento_register_command_option setup:install -f -l language -a "(__fish_print_magento_languages)" -d "Default language code"
575__fish_magento_register_command_option setup:install -f -l timezone -d "Default time zone code"
576__fish_magento_register_command_option setup:install -f -l currency -d "Default currency code"
577__fish_magento_register_command_option setup:install -f -l use-rewrites -d "Use rewrites"
578__fish_magento_register_command_option setup:install -f -l use-secure -d "Use secure URLs. Enable only if SSL is available"
579__fish_magento_register_command_option setup:install -f -l base-url-secure -a "https://" -d "Base URL for SSL connection"
580__fish_magento_register_command_option setup:install -f -l use-secure-admin -d "Run admin interface with SSL"
581__fish_magento_register_command_option setup:install -f -l admin-use-security-key -d 'Use security key in admin urls/forms'
582__fish_magento_register_command_option setup:install -f -r -l admin-user -d "(Required) Admin user"
583__fish_magento_register_command_option setup:install -f -r -l admin-password -d "(Required) Admin password"
584__fish_magento_register_command_option setup:install -f -r -l admin-email -d "(Required) Admin email"
585__fish_magento_register_command_option setup:install -f -r -l admin-firstname -d "(Required) Admin first name"
586__fish_magento_register_command_option setup:install -f -r -l admin-lastname -d "(Required) Admin last name"
587__fish_magento_register_command_option setup:install -f -l cleanup-database -d "Cleanup database before installation"
588__fish_magento_register_command_option setup:install -f -l sales-order-increment-prefix -d "Sales order number prefix"
589__fish_magento_register_command_option setup:install -f -l use-sample-data -d "Use sample data"
590
591#
592# setup:performance:generate-fixtures
593#
594__fish_magento_register_command_option setup:performance:generate-fixtures -f -s s -l skip-reindex -d "Skip reindex"
595
596#
597# setup:rollback
598#
599__fish_magento_register_command_option setup:rollback -s c -l code-file -d "Basename of the code backup file in var/backups"
600__fish_magento_register_command_option setup:rollback -s m -l media-file -d "Basename of the media backup file in var/backups"
601__fish_magento_register_command_option setup:rollback -s d -l db-file -d "Basename of the db backup file in var/backups"
602
603#
604# setup:static-content:deploy
605#
606__fish_magento_register_command_option setup:static-content:deploy -x -a "(__fish_print_magento_languages)" -d "Space-separated list of ISO-636 language codes to output static view files for"
607__fish_magento_register_command_option setup:static-content:deploy -f -s d -l dry-run -d "Simulate deployment only"
608__fish_magento_register_command_option setup:static-content:deploy -f -l no-javascript -d "Don't deploy JavaScript files"
609__fish_magento_register_command_option setup:static-content:deploy -f -l no-css -d "Don't deploy CSS files"
610__fish_magento_register_command_option setup:static-content:deploy -f -l no-less -d "Don't deploy LESS files"
611__fish_magento_register_command_option setup:static-content:deploy -f -l no-images -d "Don't deploy images"
612__fish_magento_register_command_option setup:static-content:deploy -f -l no-fonts -d "Don't deploy font files"
613__fish_magento_register_command_option setup:static-content:deploy -f -l no-html -d "Don't deploy HTML files"
614__fish_magento_register_command_option setup:static-content:deploy -f -l no-misc -d "Don't deploy other types of files (.md, .jbf, .csv, etc...)"
615__fish_magento_register_command_option setup:static-content:deploy -f -l no-html-minify -d "Don't minify HTML files"
616__fish_magento_register_command_option setup:static-content:deploy -s t -l theme -d 'Generate static view files only for specified themes (default: "all")'
617__fish_magento_register_command_option setup:static-content:deploy -l exclude-theme -d 'Do not generate files for specified themes (default: "none")'
618__fish_magento_register_command_option setup:static-content:deploy -f -s l -l language -a "(__fish_print_magento_languages)" -d 'Generate files only for specified languages (default: "all")'
619__fish_magento_register_command_option setup:static-content:deploy -f -l exclude-language -d 'Do not generate files for specified languages. (default: "none") (multiple values allowed)'
620__fish_magento_register_command_option setup:static-content:deploy -f -s a -l area -a "(__fish_print_magento_theme_areas)" -d 'Generate files only for specified areas (default: "all")'
621__fish_magento_register_command_option setup:static-content:deploy -f -l exclude-area -a "(__fish_print_magento_theme_areas)" -d 'Do not generate files for specified areas (default: "none")'
622__fish_magento_register_command_option setup:static-content:deploy -x -s j -l jobs -d "Enable parallel processing using specified number of jobs (default: 4)"
623__fish_magento_register_command_option setup:static-content:deploy -f -l symlink-locale -d "Create symlinks for files of locales which are passed for deployment but have no customizations"
624
625#
626# setup:store-config:set
627#
628__fish_magento_register_command_option setup:store-config:set -f -l base-url -a "(__fish_print_magento_url_protocols)" -d "URL the store is supposed to be available at"
629__fish_magento_register_command_option setup:store-config:set -f -l language -a "(__fish_print_magento_languages)" -d "Default language code"
630__fish_magento_register_command_option setup:store-config:set -f -l timezone -d "Default time zone code"
631__fish_magento_register_command_option setup:store-config:set -f -l currency -d "Default currency code"
632__fish_magento_register_command_option setup:store-config:set -f -l use-rewrites -d "Use rewrites"
633__fish_magento_register_command_option setup:store-config:set -f -l use-secure -d "Use secure URLs. Only enable if SSL is available"
634__fish_magento_register_command_option setup:store-config:set -f -l base-url-secure -a "https://" -d "Base URL for SSL connection"
635__fish_magento_register_command_option setup:store-config:set -f -l use-secure-admin -d "Run admin interface with SSL"
636__fish_magento_register_command_option setup:store-config:set -f -l admin-use-security-key -d 'Use security key in admin urls/forms'
637
638#
639# setup:upgrade
640#
641__fish_magento_register_command_option setup:upgrade -l keep-generated -d "Prevents generated files from being deleted"
642
643#
644# theme:uninstall
645#
646__fish_magento_register_command_option theme:uninstall -f -l backup-code -d "Take code backup (excluding temporary files)"
647__fish_magento_register_command_option theme:uninstall -f -s c -l clear-static-content -d "Clear generated static view files"