Skip to content

Refactor/split into multiple files #17

@clehner

Description

@clehner

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 $@;;
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions