Pre-Execution Inputs
Introduction
The most common way is when we need to show questions in the terminal and we need these answers before the function factory start.
In the schema.json
files you could declare inputs as objects. However, you could not pass JS object in terminal.
Code section
For this purpose, we have a property inside collection named: schema
This file will contain all the questions and It will send to the factory function as first parameter.
If you put the property additionalProperties
in true in the schema.json
file, the schematic can support more than the properties specified into the schema.json