From 1ba6fd2d6a88ef6e072d637bdd6fae89d1f4347b Mon Sep 17 00:00:00 2001 From: Rezart Qelibari Date: Sun, 13 Feb 2022 21:01:59 +0100 Subject: [PATCH] Use command to ask modules for questions --- README.md | 4 ++-- install.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ebbff09..b2e095b 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,8 @@ Scripts to align a macOS system to Astzweig system configuration. ## Required Information Format Modules must print their required information to stdout if they're called with -`--show-required-information` option. Required information are all information the -module might want to ask the user in order to configure some aspect of the system. +`show-questions` command. Required information are all information the module +might want to ask the user in order to configure some aspect of the system. ### Schema The general schema is: diff --git a/install.sh b/install.sh index 8564850..bb1274b 100755 --- a/install.sh +++ b/install.sh @@ -97,7 +97,7 @@ function parseQuestionLine() { function populateQuestionsWithModuleRequiredInformation() { log debug "Asking ${mod} for required information" - for line in "${(f)$(runModule "${mod}" --show-required-information)}"; do + for line in "${(f)$(runModule "${mod}" show-questions)}"; do log debug "Says line: ${line}" parseQuestionLine log debug "Parsing question returned status: $?"