Refactored (2)

Created an `Editor` class out methods in the `Util` class to enhance
code clarity.
This commit is contained in:
Chris Lane
2019-01-31 17:01:46 -05:00
parent 8f757d7735
commit ab87bb11c4
4 changed files with 39 additions and 27 deletions

View File

@ -36,10 +36,11 @@ Examples:
# require the dependencies
from __future__ import print_function
from cheat.sheets import Sheets
from cheat.sheet import Sheet
from cheat.utils import Utils
from cheat.configuration import Configuration
from cheat.editor import Editor
from cheat.sheet import Sheet
from cheat.sheets import Sheets
from cheat.utils import Utils
from docopt import docopt
import os
@ -53,9 +54,10 @@ if __name__ == '__main__':
config.validate()
# bootsrap
editor = Editor(config)
sheets = Sheets(config)
utils = Utils(config)
sheet = Sheet(sheets, utils)
sheet = Sheet(sheets, utils, editor)
# list directories
if options['--directories']: