This repository has been archived by the owner on Jul 12, 2022. It is now read-only.
Formula output #931
Labels
📚 documentation
Improvements or additions to documentation
✨ feature
Suggest a new feature or enhancement to the Ritchie project
Milestone
What would you like to be added:
The idea of formula outputs is to allow ritchie cli users to develop workflows in which it is possible to reuse the output of one formula as input to another.
With that we have, initially, that the output of the formulas will be recorded in a file called
output.json
inside the bin folder of the formula. In addition, we have the following definitions:::
> initial markerrit-output
> log identifier for rit outputs[space]
> separator between identifier and variable=
> separator between variable name and variable valueNodeJS example:
We also defined that, from the formula output file, it will be possible to consume the values recorded through the flags, as an example:
Where:
--db
> formula input used as a flag=
> separator of the flag and the value passed::
> initial markerrit-output
> log identifier for rit outputs.
> is the separator of the identifier, formula path and variablerepo
> repository where the formula is located (local-default, for example)formula
> formula itself without the rit command separated by an underscore (scaffold_kotlin, for example)database
> key inside the "output.json" file that you want to useP.S .: For this first delivery, only one output per line will be accepted:
Why is this needed:
To allow the output of formulas and the reuse in the development of workflows
The text was updated successfully, but these errors were encountered: