|
@@ -36,32 +36,4 @@ shellfu import saturnin
|
36
|
36
|
export SHELLFU_INIGREP_PATH SHELLFU_PATH SHELLFU_PRETTY_USAGE \
|
37
|
37
|
SATURNIN_CACHE_HOME
|
38
|
38
|
|
39
|
|
-main() {
|
40
|
|
- local subcommand
|
41
|
|
- while true; do case $1 in
|
42
|
|
- -d|--debug) export SHELLFU_DEBUG=true; shift ;;
|
43
|
|
- -v|--verbose) export SHELLFU_VERBOSE=true; shift ;;
|
44
|
|
- --version) saturnin__version; exit ;;
|
45
|
|
- --version-semver) echo "$SATURNIN_APP_VERSION"; exit ;;
|
46
|
|
- -*) saturnin__usage; ;;
|
47
|
|
- --*) saturnin__usage; ;;
|
48
|
|
- --) shift; break ;;
|
49
|
|
- "") saturnin__usage; ;;
|
50
|
|
- *) break; ;;
|
51
|
|
- esac done
|
52
|
|
- subcommand="$1"; shift
|
53
|
|
- debug -v subcommand
|
54
|
|
- debug -v SHELLFU_PATH SATURNIN_LIBEXEC SHELLFU_INIGREP_PATH
|
55
|
|
- debug "\$*='$*'"
|
56
|
|
- case "$subcommand" in
|
57
|
|
- conf) inigrep "$@" ;;
|
58
|
|
- help) saturnin__help ;;
|
59
|
|
- _ls_subcommands) saturnin__lssc ;;
|
60
|
|
- _lsfun) shellfu-get lsfun ;;
|
61
|
|
- _lsmod) shellfu-get lsmod ;;
|
62
|
|
- _ffrun) ffrun "$@" ;;
|
63
|
|
- *) saturnin__runsc "$subcommand" "$@" ;;
|
64
|
|
- esac
|
65
|
|
-}
|
66
|
|
-
|
67
|
|
-main "$@"
|
|
39
|
+saturnin__main "$@"
|