Merge branch 'master' of https://github.com/liuyang1/cheat into liuyang1-master

Resolving merge-conflicts.
This commit is contained in:
Chris Lane
2019-01-11 17:00:39 -05:00
2 changed files with 13 additions and 5 deletions

View File

@ -35,6 +35,7 @@ Examples:
"""
# require the dependencies
from __future__ import print_function
from cheat import sheets, sheet
from cheat.utils import colorize
from cheat.utils import die
@ -64,7 +65,7 @@ if __name__ == '__main__':
# list cheatsheets
elif options['--list']:
print(sheets.list())
print(sheets.list(), end="")
# create/edit cheatsheet
elif options['--edit']:
@ -72,8 +73,8 @@ if __name__ == '__main__':
# search among the cheatsheets
elif options['--search']:
print(colorize(sheets.search(options['<keyword>'])))
print(colorize(sheets.search(options['<keyword>'])), end="")
# print the cheatsheet
else:
print(colorize(sheet.read(options['<cheatsheet>'])))
print(colorize(sheet.read(options['<cheatsheet>'])), end="")