mirror of https://github.com/cheat/cheat.git
parent
ab87bb11c4
commit
928637c9db
|
@ -42,7 +42,6 @@ from cheat.sheet import Sheet
|
||||||
from cheat.sheets import Sheets
|
from cheat.sheets import Sheets
|
||||||
from cheat.utils import Utils
|
from cheat.utils import Utils
|
||||||
from docopt import docopt
|
from docopt import docopt
|
||||||
import os
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
|
@ -57,7 +56,7 @@ if __name__ == '__main__':
|
||||||
editor = Editor(config)
|
editor = Editor(config)
|
||||||
sheets = Sheets(config)
|
sheets = Sheets(config)
|
||||||
utils = Utils(config)
|
utils = Utils(config)
|
||||||
sheet = Sheet(sheets, utils, editor)
|
sheet = Sheet(sheets, editor)
|
||||||
|
|
||||||
# list directories
|
# list directories
|
||||||
if options['--directories']:
|
if options['--directories']:
|
||||||
|
|
|
@ -2,15 +2,11 @@ import io
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from cheat.editor import Editor
|
|
||||||
from cheat.utils import Utils
|
|
||||||
|
|
||||||
|
|
||||||
class Sheet:
|
class Sheet:
|
||||||
|
|
||||||
def __init__(self, sheets, utils, editor):
|
def __init__(self, sheets, editor):
|
||||||
self._sheets = sheets
|
self._sheets = sheets
|
||||||
self._utils = utils
|
|
||||||
self._editor = editor
|
self._editor = editor
|
||||||
|
|
||||||
def copy(self, current_sheet_path, new_sheet_path):
|
def copy(self, current_sheet_path, new_sheet_path):
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import os
|
|
||||||
import subprocess
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue