| 1 |
#completion for modules |
| 2 |
|
| 3 |
function __fish_module_no_subcommand --description 'Test if modulecmd has yet to be given the subcommand' |
| 4 |
for i in (commandline -opc) |
| 5 |
if contains -- $i add add-any load load-any try-add try-load rm remove delete unload swap switch show display lint list avail is-loaded is-saved is-used is-avail info-loaded aliases use unuse refresh reload purge source whatis apropos keyword search test save reset restore saverm saveshow savelist stash stashclear stashlist stashpop stashrm stashshow path paths append-path prepend-path remove-path clear config sh-to-mod edit state mod-to-sh cachebuild cacheclear spider update disable describe |
| 6 |
return 1 |
| 7 |
end |
| 8 |
end |
| 9 |
return 0 |
| 10 |
end |
| 11 |
|
| 12 |
function __fish_module_use_avail --description 'Test if module command should have available packages as potential completion' |
| 13 |
for i in (commandline -opc) |
| 14 |
if contains -- $i help add add-any load load-any try-add try-load swap switch show display avail is-loaded is-avail info-loaded whatis test path paths edit lint mod-to-sh |
| 15 |
return 0 |
| 16 |
end |
| 17 |
end |
| 18 |
return 1 |
| 19 |
end |
| 20 |
|
| 21 |
function __fish_module_use_spider --description 'Test if module command should have spidered packages as potential completion' |
| 22 |
for i in (commandline -opc) |
| 23 |
if contains -- $i spider |
| 24 |
return 0 |
| 25 |
end |
| 26 |
end |
| 27 |
return 1 |
| 28 |
end |
| 29 |
|
| 30 |
function __fish_module_use_list --description 'Test if module command should have loaded packages as potential completion' |
| 31 |
for i in (commandline -opc) |
| 32 |
if contains -- $i swap switch rm remove delete unload |
| 33 |
return 0 |
| 34 |
end |
| 35 |
end |
| 36 |
return 1 |
| 37 |
end |
| 38 |
|
| 39 |
function __fish_module_use_savelist --description 'Test if module command should have saved collections as potential completion' |
| 40 |
for i in (commandline -opc) |
| 41 |
if contains -- $i save restore saverm disable saveshow describe savelist is-saved |
| 42 |
return 0 |
| 43 |
end |
| 44 |
end |
| 45 |
return 1 |
| 46 |
end |
| 47 |
|
| 48 |
function __fish_module_use_stashlist --description 'Test if module command should have stash collections as potential completion' |
| 49 |
for i in (commandline -opc) |
| 50 |
if contains -- $i stashpop stashrm stashshow |
| 51 |
return 0 |
| 52 |
end |
| 53 |
end |
| 54 |
return 1 |
| 55 |
end |
| 56 |
|
| 57 |
function __fish_module_use_config --description 'Test if module command should have configuration parameters as potential completion' |
| 58 |
for i in (commandline -opc) |
| 59 |
if contains -- $i config |
| 60 |
return 0 |
| 61 |
end |
| 62 |
end |
| 63 |
return 1 |
| 64 |
end |
| 65 |
|
| 66 |
complete -c module -n '__fish_module_use_avail' -f -a "(module avail --color=never -s -t -S --no-indepth -o 'alias:indesym' (commandline -ct) 2>&1)" |
| 67 |
complete -c module -n '__fish_module_use_spider' -f -a "(module spider --color=never -s -t -S --no-indepth -o 'alias:indesym' (commandline -ct) 2>&1)" |
| 68 |
complete -c module -n '__fish_module_use_list' -f -a "(module list --color=never -s -t -o '' 2>&1)" |
| 69 |
complete -c module -n '__fish_module_use_savelist' -f -a "(module savelist --color=never -s -t 2>&1 | sed '\ |
| 70 |
/No named collection\.\$/d; \ |
| 71 |
/Named collection list\$/d; \ |
| 72 |
/:\$/d; \ |
| 73 |
/:ERROR:/d;')" |
| 74 |
complete -c module -n '__fish_module_use_stashlist' -f -a "(module stashlist --color=never -s -t 2>&1 | sed '\ |
| 75 |
/No stash collection\.\$/d; \ |
| 76 |
/Stash collection list\$/d; \ |
| 77 |
/:\$/d; \ |
| 78 |
/:ERROR:/d;')" |
| 79 |
complete -c module -n '__fish_module_use_config' -f -a "--dump-state --reset abort_on_error advanced_version_spec auto_handling avail_indepth avail_output avail_terse_output cache_buffer_bytes cache_expiry_secs collection_pin_version collection_pin_tag collection_target color colors conflict_unload contact csh_limit domainname editor extended_default extra_siteconfig hide_auto_loaded home icase ignore_cache ignore_cache_subcmds ignore_user_rc ignored_dirs implicit_default implicit_requirement init_envvars info_extension linked_envvars list_output list_terse_output locked_configs logged_events logger mcookie_check mcookie_version_check ml modulepath_ignore nearly_forbidden_days non_exportable_tags pager paginate path_entry_reorder protected_envvars quarantine_support rcfile redirect_output require_via reset_target_state run_quarantine search_match set_shell_startup shells_with_ksh_fpath silent_shell_debug siteconfig source_cache spider_indepth spider_output spider_terse_output sticky_purge tag_abbrev tag_color_name tcl_ext_lib tcl_linter term_background term_width unique_name_loaded unload_match_order variant_shortcut verbosity wa_277" |
| 80 |
|
| 81 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'help' --description 'Print this or modulefile(s) help info' |
| 82 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'avail' --description 'List all or matching available modules' |
| 83 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'spider' --description 'Scan all modulepaths and list all or matching available modules' |
| 84 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'is-avail' --description 'Is any of the modulefile(s) available' |
| 85 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'add load' --description 'Load modulefile(s)' |
| 86 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'add-any load-any' --description 'Load first available modulefile in list' |
| 87 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'try-add try-load' --description 'Attempt to load modulefile(s), no complain' |
| 88 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'rm remove delete unload' --description 'Remove modulefile(s)' |
| 89 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'swap switch' --description 'Unload mod1 and load mod2' |
| 90 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'show display' --description 'Display information about modulefile(s)' |
| 91 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'list' --description 'List loaded modules' |
| 92 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'is-loaded' --description 'Test if any of the modulefile(s) are loaded' |
| 93 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'info-loaded' --description 'Get full name of matching loaded module(s)' |
| 94 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'aliases' --description 'List all module aliases' |
| 95 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'use' --description 'Add dir(s) to MODULEPATH variable' |
| 96 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'unuse' --description 'Remove dir(s) from MODULEPATH variable' |
| 97 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'is-used' --description 'Is any of the dir(s) enabled in MODULEPATH' |
| 98 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'refresh' --description 'Refresh volatile components of loaded modulefiles' |
| 99 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'reload update' --description 'Unload then load all loaded modulefiles' |
| 100 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'purge' --description 'Unload all loaded modulefiles' |
| 101 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'source' --description 'Execute scriptfile(s)' |
| 102 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'whatis' --description 'Print whatis information of modulefile(s)' |
| 103 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'apropos keyword search' --description 'Search all name and whatis containing str' |
| 104 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'test' --description 'Test modulefile(s)' |
| 105 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'save' --description 'Save current module list to collection' |
| 106 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'restore' --description 'Restore module list from collection or file' |
| 107 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'saverm' --description 'Remove saved collection' |
| 108 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'disable' --description 'Remove saved collection' |
| 109 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'saveshow' --description 'Display information about collection' |
| 110 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'describe' --description 'Display information about collection' |
| 111 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'savelist' --description 'List all saved collections' |
| 112 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'is-saved' --description 'Test if any of the collection(s) exists' |
| 113 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'path' --description 'Print modulefile path' |
| 114 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'paths' --description 'Print path of matching available modules' |
| 115 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'append-path' --description 'Append value to environment variable' |
| 116 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'prepend-path' --description 'Prepend value to environment variable' |
| 117 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'remove-path' --description 'Remove value from environment variable' |
| 118 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'clear' --description 'Reset Modules-specific runtime information' |
| 119 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'config' --description 'Display or set Modules configuration' |
| 120 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'sh-to-mod' --description 'Make modulefile from script env changes' |
| 121 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'edit' --description 'Open modulefile in editor' |
| 122 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'state' --description 'Display Modules state' |
| 123 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'lint' --description 'Check syntax of modulefile' |
| 124 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'mod-to-sh' --description 'Make shell code from modulefile env changes' |
| 125 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'reset' --description 'Restore initial environment' |
| 126 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'stash' --description 'Save current environment and reset' |
| 127 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'stashclear' --description 'Remove all stash collections' |
| 128 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'stashlist' --description 'List all stash collections' |
| 129 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'stashpop' --description 'Restore then remove stash collection' |
| 130 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'stashrm' --description 'Remove stash collection' |
| 131 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'stashshow' --description 'Display information about stash collection' |
| 132 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'cachebuild' --description 'Create cache file for modulepath(s)' |
| 133 |
complete -f -n '__fish_module_no_subcommand' -c module -a 'cacheclear' --description 'Delete cache file in enabled modulepath(s)' |
| 134 |
|
| 135 |
complete -c module -s V -l version --description 'Module version' |
| 136 |
complete -c module -l dumpname --description 'Module implementation name' |
| 137 |
complete -c module -s T -l trace --description 'Enable trace and debug messages' |
| 138 |
complete -c module -s D -l debug --description 'Enable debug messages' |
| 139 |
complete -c module -s v -l verbose --description 'Enable verbose messages' |
| 140 |
complete -c module -s s -l silent --description 'Turn off error, warning and informational messages' |
| 141 |
complete -c module -s i -l icase --description 'Case insensitive match' |
| 142 |
complete -c module -s t -l terse --description 'Display output in terse format' |
| 143 |
complete -c module -s l -l long --description 'Display output in long format' |
| 144 |
complete -c module -s j -l json --description 'Display output in JSON format' |
| 145 |
complete -c module -s o -l output --description 'Define elements to output in addition to module names' |
| 146 |
complete -c module -l output= --description 'Define elements to output in addition to module names' |
| 147 |
complete -c module -l tag --description 'Apply tag to loading module' |
| 148 |
complete -c module -l tag= --description 'Apply tag to loading module' |
| 149 |
complete -c module -s a -l all --description 'Include hidden modules in search' |
| 150 |
complete -c module -s d -l default --description 'Only show default versions available' |
| 151 |
complete -c module -s L -l latest --description 'Only show latest versions available' |
| 152 |
complete -c module -s S -l starts-with --description 'Search modules whose name begins with query string' |
| 153 |
complete -c module -s C -l contains --description 'Search modules whose name contains query string' |
| 154 |
complete -c module -l indepth --description 'Perform recursive avail search' |
| 155 |
complete -c module -l no-indepth --description 'Perform non-recursive avail search' |
| 156 |
complete -c module -s p -l paginate --description 'Pipe mesg output into a pager if stream attached to terminal' |
| 157 |
complete -c module -s P -l no-pager --description 'Do not pipe message output into a pager' |
| 158 |
complete -c module -l auto --description 'Enable automated module handling mode' |
| 159 |
complete -c module -l no-auto --description 'Disable automated module handling mode' |
| 160 |
complete -c module -s f -l force --description 'By-pass dependency consistency or confirmation dialog' |
| 161 |
complete -c module -l color --description 'Colorize the output' |
| 162 |
complete -c module -l color= --description 'Colorize the output' |
| 163 |
complete -c module -s w -l width --description 'Set output width' |
| 164 |
complete -c module -l width= --description 'Set output width' |
| 165 |
complete -c module -l ignore-cache --description 'Ignore module cache' |
| 166 |
complete -c module -l ignore-user-rc --description 'Skip evaluation of user-specific module rc file' |
| 167 |
complete -c module -l no-modulepath-ignore --description 'Do not apply modulepath-ignore pattern definitions' |
| 168 |
complete -c module -l append --description 'Append directory to MODULEPATH' |
| 169 |
complete -c module -l prepend --description 'Prepend directory to MODULEPATH' |
| 170 |
complete -c module -l timer --description 'Report execution times' |
| 171 |
complete -c module -l redirect --description 'Send output to stdout' |
| 172 |
complete -c module -l no-redirect --description 'Send output to stderr' |