Formulas are nothing more than automations. That is, they are codes called through command lines to perform some operation.
Depending on the formula, the user might need to inform input parameters. Those input parameters can be informed in different ways:
After running the command on the terminal (via prompt)
When typing the command on the terminal (via stdin or input flags)
During the execution of the formula (if coded using prompt)
In the case of Ritchie, the Cobra (a Golang library) pattern was followed using the following logic of building core commands:
RIT + VERB + NOUN
To allow more options and freedom for users, it is also allowed to follow the pattern below in the construction of formula commands:
RIT + GROUP + VERB + NOUN
The app name is Ritchie, so we use the name
rit to start our command tree.
The executable commands in Ritchie are the commands located at the last level of the tree. For example, in the image above:
rit set context command is executable, as it is at the last level of the tree.
rit kafka create command is not executable as there is an executable topic subcommand, at the last level of the tree.
This command tree concept is the core of Ritchie's structure.