瀏覽代碼

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,7 +14,7 @@ __satcmd() {
14 14
             ;;
15 15
         *)
16 16
             COMPREPLY=(
17
-                $(compgen -W "$(satcmd _ls_subcommands)" ${cur})
17
+                $(compgen -W "$(satcmd _ls_sc)" ${cur})
18 18
             )
19 19
     esac
20 20
 }

+ 1
- 1
src/shellfu/saturnin.sh 查看文件

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