Use loadModules and askUserModuleQuestions

This commit is contained in:
Rezart Qelibari
2022-03-08 12:42:48 +01:00
parent 79693877b2
commit 322a2aa757
14 changed files with 77 additions and 628 deletions

View File

@@ -20,7 +20,7 @@ function checkCommands() {
if ! which "${cmd}" >&! /dev/null; then
local comment=''
[ -n "${cmds[$cmd]}" ] && comment=" ${cmds[$cmd]}"
lop error "This module needs ${cmd}${comment} to work."
lop -e "This module needs ${cmd}${comment} to work."
return 11
fi
done
@@ -30,7 +30,7 @@ function showQuestions() {
local questions=()
getQuestions
for question in ${questions}; do
hio info "${question}"
hio -- body "${question}"
done
}