Use command to ask modules for questions
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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: $?"
|
||||
|
||||
Reference in New Issue
Block a user