As the script is now >1000 lines and embracing several areas of functionality, @jeremywrnr and I were discussing splitting it into separate files. We propose keeping core functions (like get courses) and command line argument parsing in bb while making one file for each command (except commands where there is significant overlap).
This could be done in such a way that only the scripts which need to be executed are sourced. e.g.
case "$cmd" in
...
bill) source $BB_PATH/quikpay; bb_bill $@;;
...
As the script is now >1000 lines and embracing several areas of functionality, @jeremywrnr and I were discussing splitting it into separate files. We propose keeping core functions (like get courses) and command line argument parsing in
bb
while making one file for each command (except commands where there is significant overlap).This could be done in such a way that only the scripts which need to be executed are sourced. e.g.