Use command to ask modules for questions

This commit is contained in:
Rezart Qelibari
2022-02-13 21:01:59 +01:00
parent 594467ec52
commit 1ba6fd2d6a
2 changed files with 3 additions and 3 deletions

View File

@@ -19,8 +19,8 @@ Scripts to align a macOS system to Astzweig system configuration.
## Required Information Format ## Required Information Format
Modules must print their required information to stdout if they're called with Modules must print their required information to stdout if they're called with
`--show-required-information` option. Required information are all information the `show-questions` command. Required information are all information the module
module might want to ask the user in order to configure some aspect of the system. might want to ask the user in order to configure some aspect of the system.
### Schema ### Schema
The general schema is: The general schema is:

View File

@@ -97,7 +97,7 @@ function parseQuestionLine() {
function populateQuestionsWithModuleRequiredInformation() { function populateQuestionsWithModuleRequiredInformation() {
log debug "Asking ${mod} for required information" 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}" log debug "Says line: ${line}"
parseQuestionLine parseQuestionLine
log debug "Parsing question returned status: $?" log debug "Parsing question returned status: $?"