mirror of
https://github.com/cheat/cheat.git
synced 2025-09-04 11:08:29 +02:00
Refactored (2)
Created an `Editor` class out methods in the `Util` class to enhance code clarity.
This commit is contained in:
10
bin/cheat
10
bin/cheat
@ -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']:
|
||||
|
Reference in New Issue
Block a user