This commit is contained in:
Michael Stanclift 2020-10-07 22:16:45 -05:00
parent 75c0f8a40c
commit ead57c2506

View File

@ -138,6 +138,7 @@ function error_validate {
# SCRIPT EXECUTION ########################### # SCRIPT EXECUTION ###########################
function start_gs {
MESSAGE="${PROGRAM} ${VERSION} Executing" MESSAGE="${PROGRAM} ${VERSION} Executing"
echo_info echo_info
@ -150,46 +151,68 @@ function error_validate {
then then
root_check root_check
fi fi
}
case $# in case $# in
0) 0)
start_gs
task_smart ;; task_smart ;;
1) 1)
case $1 in case $1 in
smart|sync) smart|sync)
start_gs
task_smart ;; task_smart ;;
pull) pull)
start_gs
task_pull ;; task_pull ;;
push) push)
start_gs
task_push ;; task_push ;;
restore) restore)
start_gs
task_restore ;; task_restore ;;
version) version)
start_gs
task_version ;; task_version ;;
update|upgrade) update|upgrade)
start_gs
task_update ;; task_update ;;
dev|devmode|development|develop) dev|devmode|development|develop)
task_devmode ;; task_devmode ;;
logs|log) logs|log)
start_gs
task_logs ;; task_logs ;;
compare) compare)
start_gs
task_compare ;; task_compare ;;
cron) cron)
start_gs
task_cron ;; task_cron ;;
config|configure) config|configure)
MESSAGE="${PROGRAM} ${VERSION} Executing"
echo_info
MESSAGE="Evaluating Arguments"
echo_stat
task_configure ;; task_configure ;;
auto|automate) auto|automate)
start_gs
task_automate ;; task_automate ;;
backup) backup)
start_gs
task_backup ;; task_backup ;;
purge) purge)
start_gs
task_purge ;; task_purge ;;
sudo) sudo)
start_gs
task_sudo task_sudo
exit_withchange exit_withchange
;; ;;
*) *)
start_gs
task_invalid ;; task_invalid ;;
esac esac
;; ;;
@ -197,6 +220,7 @@ case $# in
2) 2)
case $1 in case $1 in
auto|automate) auto|automate)
start_gs
task_automate ;; task_automate ;;
esac esac
;; ;;
@ -204,11 +228,13 @@ case $# in
3) 3)
case $1 in case $1 in
auto|automate) auto|automate)
start_gs
task_automate $2 $3 ;; task_automate $2 $3 ;;
esac esac
;; ;;
*) *)
start_gs
task_invalid ;; task_invalid ;;
esac esac