With the formulas, the STDIN flag JSON’s ID is based on the inputs parameters names informed on the config.json file used to implement the formula.
Formula command: rit demo formula
Inputs names asked in the config.json file:
name
surname
dateOfBirth
Formula execution with STDIN:
echo '{"name":"Dennis", "surname":"Ritchie", "dateOfBirth":"09/09/1941"}' | rit demo formula --stdin
The formula’s command through stdin will need the input parameters based on the config.json to work properly.
If the formula’s implementation asks for data via prompt, it will not be possible to exclusively use stdin for the formula to run successfully.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.