mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-24 08:37:59 +02:00
modulecmd: mapping of sub-cmds and their aliases to functions reviwed
This commit is contained in:
@@ -2071,6 +2071,7 @@ subcommand_clear() {
|
||||
# search [switches] [STRING...]
|
||||
#
|
||||
Subcommands[search]='search'
|
||||
Subcommands[find]='search'
|
||||
Options[search]='-o a\?H -l help -l no-header -l print-modulefiles '
|
||||
Options[search]+='-l release-stage: -l with: -l all-release-stages -l src: -l print-csv '
|
||||
Options[search]+='-l verbose '
|
||||
@@ -2881,27 +2882,6 @@ if [[ -z "${Subcommands[${subcommand}]}" ]]; then
|
||||
std::die 1 "${CMD}: unknown sub-command -- ${subcommand}"
|
||||
fi
|
||||
|
||||
case ${subcommand} in
|
||||
add )
|
||||
subcommand='load'
|
||||
;;
|
||||
display )
|
||||
subcommand='show'
|
||||
;;
|
||||
keyword )
|
||||
subcommand='apropos'
|
||||
;;
|
||||
rm )
|
||||
subcommand='unload'
|
||||
;;
|
||||
find )
|
||||
subcommand='search'
|
||||
;;
|
||||
switch )
|
||||
subcommand='swap'
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ -n ${PMODULES_ENV} ]]; then
|
||||
eval "$("${base64}" -d <<< "${PMODULES_ENV}" 2>/dev/null)"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user