Browse Source

Shorten internal subcommand

Will make code less ugly at places.
Alois Mahdal 8 years ago
parent
commit
07a9764014
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/complete.bash
  2. 1
    1
      src/shellfu/saturnin.sh

+ 1
- 1
src/complete.bash View File

14
             ;;
14
             ;;
15
         *)
15
         *)
16
             COMPREPLY=(
16
             COMPREPLY=(
17
-                $(compgen -W "$(satcmd _ls_subcommands)" ${cur})
17
+                $(compgen -W "$(satcmd _ls_sc)" ${cur})
18
             )
18
             )
19
     esac
19
     esac
20
 }
20
 }

+ 1
- 1
src/shellfu/saturnin.sh View File

177
     debug -v SHELLFU_PATH SATURNIN_LIBEXEC SATURNIN_CONF_PATH
177
     debug -v SHELLFU_PATH SATURNIN_LIBEXEC SATURNIN_CONF_PATH
178
     case "$subcommand" in
178
     case "$subcommand" in
179
         conf)               saturnin__conf "$@" ;;
179
         conf)               saturnin__conf "$@" ;;
180
-        _ls_subcommands)    saturnin__lssc ;;
180
+        _ls_sc)    saturnin__lssc ;;
181
         _lsfun)             shellfu-get lsfun ;;
181
         _lsfun)             shellfu-get lsfun ;;
182
         _lsmod)             shellfu-get lsmod ;;
182
         _lsmod)             shellfu-get lsmod ;;
183
         *)                  saturnin__runsc "$subcommand" "$@" ;;
183
         *)                  saturnin__runsc "$subcommand" "$@" ;;