Skip to content

Commit

Permalink
🚨 Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jossmoff committed Nov 12, 2023
1 parent 85a9119 commit 5448897
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions bookshelf/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,20 +195,9 @@ def tag_story(story_name: str, tag: str):
@bookshelf.command(name='untag')
@click.argument('story_name', type=story_type)
@click.argument('tag', type=str)
def tag_story(story_name: str, tag: str):
def untag_story(story_name: str, tag: str):
"""Remove a tag from a story on your bookshelf"""
story = bookshelf_storage.load_story(story_name)
story.remove_tag(tag)
bookshelf_console.print(f'🏷️ The tag \'{tag}\' has been removed from \'{story_name}\'!')
bookshelf_storage.save_story(story)


@bookshelf.command(name='info')
@click.argument('story_name', type=story_type)
def story_info_entry(story_name: str):
"""Displays the information for a given story on your bookshelf"""
try:
story = bookshelf_storage.load_story(story_name)
bookshelf_console.render_story_panel(story)
except KeyboardInterrupt:
pass

0 comments on commit 5448897

Please sign in to comment.