"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "init/fish_completion" between
modules-5.1.1.tar.bz2 and modules-5.2.0.tar.bz2

About: The Environment Modules package provides for the dynamic modification of a user’s environment via modulefiles.

fish_completion  (modules-5.1.1.tar.bz2):fish_completion  (modules-5.2.0.tar.bz2)
#completion for modules #completion for modules
function __fish_module_no_subcommand --description 'Test if modulecmd has yet to be given the subcommand' function __fish_module_no_subcommand --description 'Test if modulecmd has yet to be given the subcommand'
for i in (commandline -opc) for i in (commandline -opc)
if contains -- $i add add-any load load-any try-add try-load rm remove del unload swap switch show display 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 restore saverm saveshow savelist initadd initprepend initrm in itswitch initlist initclear path paths append-path prepend-path remove-path clea r config sh-to-mod edit state if contains -- $i add add-any load load-any try-add try-load rm remove del unload swap switch show display lint list avail is-loaded is-saved is-used is-a vail info-loaded aliases use unuse refresh reload purge source whatis apropos ke yword search test save reset restore saverm saveshow savelist stash stashclear s tashlist stashpop stashrm stashshow initadd initprepend initrm initswitch initli st initclear path paths append-path prepend-path remove-path clear config sh-to- mod edit state mod-to-sh
return 1 return 1
end end
end end
return 0 return 0
end end
function __fish_module_use_avail --description 'Test if module command should ha ve available packages as potential completion' function __fish_module_use_avail --description 'Test if module command should ha ve available packages as potential completion'
for i in (commandline -opc) for i in (commandline -opc)
if contains -- $i help add add-any load load-any try-add try-load swap swi tch show display avail is-loaded is-avail info-loaded whatis test initadd initpr epend path paths edit if contains -- $i help add add-any load load-any try-add try-load swap swi tch show display avail is-loaded is-avail info-loaded whatis test initadd initpr epend path paths edit lint mod-to-sh
return 0 return 0
end end
end end
return 1 return 1
end end
function __fish_module_use_list --description 'Test if module command should hav e loaded packages as potential completion' function __fish_module_use_list --description 'Test if module command should hav e loaded packages as potential completion'
for i in (commandline -opc) for i in (commandline -opc)
if contains -- $i swap switch rm remove del unload if contains -- $i swap switch rm remove del unload
return 0 return 0
skipping to change at line 48 skipping to change at line 48
function __fish_module_use_savelist --description 'Test if module command should have saved collections as potential completion' function __fish_module_use_savelist --description 'Test if module command should have saved collections as potential completion'
for i in (commandline -opc) for i in (commandline -opc)
if contains -- $i save restore saverm saveshow savelist is-saved if contains -- $i save restore saverm saveshow savelist is-saved
return 0 return 0
end end
end end
return 1 return 1
end end
function __fish_module_use_stashlist --description 'Test if module command shoul
d have stash collections as potential completion'
for i in (commandline -opc)
if contains -- $i stashpop stashrm stashshow
return 0
end
end
return 1
end
function __fish_module_use_config --description 'Test if module command should h ave configuration parameters as potential completion' function __fish_module_use_config --description 'Test if module command should h ave configuration parameters as potential completion'
for i in (commandline -opc) for i in (commandline -opc)
if contains -- $i config if contains -- $i config
return 0 return 0
end end
end end
return 1 return 1
end end
complete -c module -n '__fish_module_use_avail' -f -a "(module avail --color=nev er -s -t -S --no-indepth -o '' (commandline -ct) 2>&1)" complete -c module -n '__fish_module_use_avail' -f -a "(module avail --color=nev er -s -t -S --no-indepth -o '' (commandline -ct) 2>&1)"
complete -c module -n '__fish_module_use_list' -f -a "(module list --color=never -s -t -o '' 2>&1)" complete -c module -n '__fish_module_use_list' -f -a "(module list --color=never -s -t -o '' 2>&1)"
complete -c module -n '__fish_module_use_initlist' -f -a "(module initlist --col or=never -s 2>&1 | sed '\ complete -c module -n '__fish_module_use_initlist' -f -a "(module initlist --col or=never -s 2>&1 | sed '\
/ loads modules:\$/d;')" / loads modules:\$/d;')"
complete -c module -n '__fish_module_use_savelist' -f -a "(module savelist --col or=never -s -t 2>&1 | sed '\ complete -c module -n '__fish_module_use_savelist' -f -a "(module savelist --col or=never -s -t 2>&1 | sed '\
/No named collection\.\$/d; \ /No named collection\.\$/d; \
/Named collection list\$/d; \ /Named collection list\$/d; \
/:\$/d; \ /:\$/d; \
/:ERROR:/d;')" /:ERROR:/d;')"
complete -c module -n '__fish_module_use_config' -f -a "--dump-state --reset adv complete -c module -n '__fish_module_use_stashlist' -f -a "(module stashlist --c
anced_version_spec auto_handling avail_indepth avail_output avail_terse_output c olor=never -s -t 2>&1 | sed '\
ollection_pin_version collection_pin_tag collection_target color colors contact /No stash collection\.\$/d; \
editor extended_default extra_siteconfig home icase implicit_default implicit_re /Stash collection list\$/d; \
quirement list_output list_terse_output locked_configs mcookie_check mcookie_ver /:\$/d; \
sion_check ml nearly_forbidden_days pager quarantine_support rcfile redirect_out /:ERROR:/d;')"
put run_quarantine search_match set_shell_startup shells_with_ksh_fpath silent_s complete -c module -n '__fish_module_use_config' -f -a "--dump-state --reset adv
hell_debug tag_abbrev tag_color_name term_background term_width unload_match_ord anced_version_spec auto_handling avail_indepth avail_output avail_terse_output c
er variant_shortcut verbosity wa_277" ollection_pin_version collection_pin_tag collection_target color colors contact
editor extended_default extra_siteconfig home icase implicit_default implicit_re
quirement list_output list_terse_output locked_configs mcookie_check mcookie_ver
sion_check ml nearly_forbidden_days pager protected_envvars quarantine_support r
cfile redirect_output reset_target_state run_quarantine search_match set_shell_s
tartup shells_with_ksh_fpath silent_shell_debug tag_abbrev tag_color_name tcl_li
nter term_background term_width unload_match_order variant_shortcut verbosity wa
_277"
complete -f -n '__fish_module_no_subcommand' -c module -a 'help' --description ' Print this or modulefile(s) help info' complete -f -n '__fish_module_no_subcommand' -c module -a 'help' --description ' Print this or modulefile(s) help info'
complete -f -n '__fish_module_no_subcommand' -c module -a 'avail' --description 'List all or matching available modules' complete -f -n '__fish_module_no_subcommand' -c module -a 'avail' --description 'List all or matching available modules'
complete -f -n '__fish_module_no_subcommand' -c module -a 'is-avail' --descripti on 'Is any of the modulefile(s) available' complete -f -n '__fish_module_no_subcommand' -c module -a 'is-avail' --descripti on 'Is any of the modulefile(s) available'
complete -f -n '__fish_module_no_subcommand' -c module -a 'add load' --descripti on 'Load modulefile(s)' complete -f -n '__fish_module_no_subcommand' -c module -a 'add load' --descripti on 'Load modulefile(s)'
complete -f -n '__fish_module_no_subcommand' -c module -a 'add-any load-any' --d escription 'Load first available modulefile in list' complete -f -n '__fish_module_no_subcommand' -c module -a 'add-any load-any' --d escription 'Load first available modulefile in list'
complete -f -n '__fish_module_no_subcommand' -c module -a 'try-add try-load' --d escription 'Attempt to load modulefile(s), no complain' complete -f -n '__fish_module_no_subcommand' -c module -a 'try-add try-load' --d escription 'Attempt to load modulefile(s), no complain'
complete -f -n '__fish_module_no_subcommand' -c module -a 'rm remove del unload' --description 'Remove modulefile(s)' complete -f -n '__fish_module_no_subcommand' -c module -a 'rm remove del unload' --description 'Remove modulefile(s)'
complete -f -n '__fish_module_no_subcommand' -c module -a 'swap switch' --descri ption 'Unload mod1 and load mod2' complete -f -n '__fish_module_no_subcommand' -c module -a 'swap switch' --descri ption 'Unload mod1 and load mod2'
complete -f -n '__fish_module_no_subcommand' -c module -a 'show display' --descr iption 'Display information about modulefile(s)' complete -f -n '__fish_module_no_subcommand' -c module -a 'show display' --descr iption 'Display information about modulefile(s)'
skipping to change at line 113 skipping to change at line 127
complete -f -n '__fish_module_no_subcommand' -c module -a 'path' --description ' Print modulefile path' complete -f -n '__fish_module_no_subcommand' -c module -a 'path' --description ' Print modulefile path'
complete -f -n '__fish_module_no_subcommand' -c module -a 'paths' --description 'Print path of matching available modules' complete -f -n '__fish_module_no_subcommand' -c module -a 'paths' --description 'Print path of matching available modules'
complete -f -n '__fish_module_no_subcommand' -c module -a 'append-path' --descri ption 'Append value to environment variable' complete -f -n '__fish_module_no_subcommand' -c module -a 'append-path' --descri ption 'Append value to environment variable'
complete -f -n '__fish_module_no_subcommand' -c module -a 'prepend-path' --descr iption 'Prepend value to environment variable' complete -f -n '__fish_module_no_subcommand' -c module -a 'prepend-path' --descr iption 'Prepend value to environment variable'
complete -f -n '__fish_module_no_subcommand' -c module -a 'remove-path' --descri ption 'Remove value from environment variable' complete -f -n '__fish_module_no_subcommand' -c module -a 'remove-path' --descri ption 'Remove value from environment variable'
complete -f -n '__fish_module_no_subcommand' -c module -a 'clear' --description 'Reset Modules-specific runtime information' complete -f -n '__fish_module_no_subcommand' -c module -a 'clear' --description 'Reset Modules-specific runtime information'
complete -f -n '__fish_module_no_subcommand' -c module -a 'config' --description 'Display or set Modules configuration' complete -f -n '__fish_module_no_subcommand' -c module -a 'config' --description 'Display or set Modules configuration'
complete -f -n '__fish_module_no_subcommand' -c module -a 'sh-to-mod' --descript ion 'Make modulefile from script env changes' complete -f -n '__fish_module_no_subcommand' -c module -a 'sh-to-mod' --descript ion 'Make modulefile from script env changes'
complete -f -n '__fish_module_no_subcommand' -c module -a 'edit' --description ' Open modulefile in editor' complete -f -n '__fish_module_no_subcommand' -c module -a 'edit' --description ' Open modulefile in editor'
complete -f -n '__fish_module_no_subcommand' -c module -a 'state' --description 'Display Modules state' complete -f -n '__fish_module_no_subcommand' -c module -a 'state' --description 'Display Modules state'
complete -f -n '__fish_module_no_subcommand' -c module -a 'lint' --description '
Check syntax of modulefile'
complete -f -n '__fish_module_no_subcommand' -c module -a 'mod-to-sh' --descript
ion 'Make shell code from modulefile env changes'
complete -f -n '__fish_module_no_subcommand' -c module -a 'reset' --description
'Restore initial environment'
complete -f -n '__fish_module_no_subcommand' -c module -a 'stash' --description
'Save current environment and reset'
complete -f -n '__fish_module_no_subcommand' -c module -a 'stashclear' --descrip
tion 'Remove all stash collections'
complete -f -n '__fish_module_no_subcommand' -c module -a 'stashlist' --descript
ion 'List all stash collections'
complete -f -n '__fish_module_no_subcommand' -c module -a 'stashpop' --descripti
on 'Restore then remove stash collection'
complete -f -n '__fish_module_no_subcommand' -c module -a 'stashrm' --descriptio
n 'Remove stash collection'
complete -f -n '__fish_module_no_subcommand' -c module -a 'stashshow' --descript
ion 'Display information about stash collection'
complete -c module -s V -l version --description 'Module version' complete -c module -s V -l version --description 'Module version'
complete -c module -s T -l trace --description 'Enable trace and debug messages' complete -c module -s T -l trace --description 'Enable trace and debug messages'
complete -c module -s D -l debug --description 'Enable debug messages' complete -c module -s D -l debug --description 'Enable debug messages'
complete -c module -s v -l verbose --description 'Enable verbose messages' complete -c module -s v -l verbose --description 'Enable verbose messages'
complete -c module -s s -l silent --description 'Turn off error, warning and inf ormational messages' complete -c module -s s -l silent --description 'Turn off error, warning and inf ormational messages'
complete -c module -s i -l icase --description 'Case insensitive match' complete -c module -s i -l icase --description 'Case insensitive match'
complete -c module -s t -l terse --description 'Display output in terse format' complete -c module -s t -l terse --description 'Display output in terse format'
complete -c module -s l -l long --description 'Display output in long format' complete -c module -s l -l long --description 'Display output in long format'
complete -c module -s j -l json --description 'Display output in JSON format' complete -c module -s j -l json --description 'Display output in JSON format'
 End of changes. 5 change blocks. 
11 lines changed or deleted 46 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)