mirror of
https://github.com/cheat/cheat.git
synced 2025-09-04 11:08:29 +02:00
Refactored (6)
Standardized (mostly) how the various classes are initialized.
This commit is contained in:
@ -38,7 +38,6 @@ Examples:
|
||||
from __future__ import print_function
|
||||
from cheat.colorize import Colorize
|
||||
from cheat.configuration import Configuration
|
||||
from cheat.editor import Editor
|
||||
from cheat.sheet import Sheet
|
||||
from cheat.sheets import Sheets
|
||||
from docopt import docopt
|
||||
@ -53,12 +52,10 @@ if __name__ == '__main__':
|
||||
config.validate()
|
||||
|
||||
# bootsrap
|
||||
editor = Editor(config)
|
||||
sheets = Sheets(config)
|
||||
sheet = Sheet(config, sheets)
|
||||
colorize = Colorize(config)
|
||||
|
||||
sheets = Sheets(config, colorize)
|
||||
sheet = Sheet(sheets, editor)
|
||||
|
||||
# list directories
|
||||
if options['--directories']:
|
||||
print("\n".join(sheets.paths()))
|
||||
|
Reference in New Issue
Block a user