浏览代码

Shorten internal subcommand

Will make code less ugly at places.
Alois Mahdal 8 年前
父节点
当前提交
07a9764014
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      src/complete.bash
  2. 1
    1
      src/shellfu/saturnin.sh

+ 1
- 1
src/complete.bash 查看文件

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 查看文件

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" "$@" ;;