Add module_main to lib.sh

This commit is contained in:
Rezart Qelibari
2022-02-16 23:09:28 +01:00
parent 4f9f97d44f
commit 0f6313e777
2 changed files with 26 additions and 23 deletions

View File

@@ -25,3 +25,13 @@ function checkCommands() {
fi
done
}
function module_main() {
autoloadZShLib || return
checkPrerequisites || return
eval "`docopts -f -V - -h - : "$@"`"
[ $# -le 1 ] && return
configureLogging
[ "${show_questions}" = true ] && { showQuestions; return }
configure_system
}