Closed carlosvargas closed 8 years ago
i like this alot...and we can create a BaseClass such that Console/JSON/CSV can all inherit from it because they will have some similar functionality and name of functions. we can just override the functions that differ in implementation and define methods that are common in all 3 in the BaseClass.
Now that we are able to print the results out into multiple formats (Issue #36), we realized that we need to separate the functionality into it's own module to make things cleaner.
I was thinking about this and here are my thoughts.
Move all of the printing code into a module called
writers.py
that will look like:then in
main.py
we can call the factory function:What do you guys think?