Move all BL to the manager. The ArgParser now only parses the CLI arguments and creates a command which contains which command was run. In turn, this information is passed to the manager, which will run the appropriate business logic. This will make it easier to add new options, separating the parsing of the CLI options from the implementation of the logic. It also simplifies any future effort in adding a different input (e.g. GUI). Warning: some function were commented out, this is only a tracer bullet.
9 lines
278 B
Python
9 lines
278 B
Python
__all__ = ["run", "parse_data", "categorize_data"]
|
|
__author__ = "Luís Murta"
|
|
__version__ = "0.1"
|
|
|
|
from pfbudget.core.categories import categorize_data
|
|
from pfbudget.core.manager import Manager
|
|
from pfbudget.cli.runnable import run
|
|
from pfbudget.input.parsers import parse_data
|