Skip to content

Refactor/split into multiple files #17

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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