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
|
## 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:
|
||||||
|
|||||||
@@ -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: $?"
|
||||||
|
|||||||
Reference in New Issue
Block a user