Architecture
Please contribute good (but brief) architecture documentation!
Gist
Execute a command like application [commandgroup] [command].
- Ex:
bent core savecallsfunction core_save()inside Git Bent'score/core.bashfile. -
bent savecallsbent core save. When not given,coreis the assumed command group
Need To know
-
import core/commandgroup-separate.bashto include more commands from the same group, but kept in a different file. (used for internal organization when a command group gets unwieldy for a single file) - Functions are written as
function commandgroup_command(){}and insidecore/commandgroup.bash-
function commandgroup_command_part2_part3()is called like:application commandgroup command part2 part3 - I think there's a maximum of 3 parts to the command name
-
- NEVER use
echoin production code. Usemsginstead - NEVER use
read -p "msg". Use one of thepromptfunctions built in. - shorthand/aliases are written at the top of a file. See setup/core/core.bash for an example.
- Use color variables or special
msg_functions to make important stuff stand out, but keep it minimal.- See code/lib/color-vars.bash for color vairables.
- code/lib/msg.bash for examples