Refactored (8)

Refactored `Sheet` class:

- Removed unnecessary indirection and extraneous methods
- Renamed some methods to conform to Pythonic conventions
- Renamed the `create_or_edit` method to `edit` to be consistent with
  subcommand name (`--edit`)
This commit is contained in:
Chris Lane
2019-02-01 11:23:38 -05:00
parent e2b5728283
commit 5793c1845a
2 changed files with 33 additions and 51 deletions

View File

@ -93,7 +93,7 @@ if __name__ == '__main__':
# create/edit cheatsheet
elif options['--edit']:
sheet.create_or_edit(options['<cheatsheet>'])
sheet.edit(options['<cheatsheet>'])
# search among the cheatsheets
elif options['--search']: