Skip to content

Commit

Permalink
Merge pull request #1517 from glensc/tui
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc authored Aug 28, 2023
2 parents 2ddc216 + 0dd2972 commit 30ac661
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ charset-normalizer = "==3.2.0"
click = "==8.1.7"
deprecated = "==1.2.14"
idna = {version="==3.4", python_version=">='3.5'"}
importlib-metadata = {version="==6.8.0", python_version=">='3.8'"}
inquirerpy = "==0.3.4"
linkify-it-py = "==2.0.2"
markdown-it-py = {version="==3.0.0", python_version=">='3.7'"}
mdit-py-plugins = "==0.4.0"
mdurl = {version="==0.1.2", python_version=">='3.7'"}
oauthlib = "==3.2.2"
pfzy = {version="==0.3.4", markers="python_version >= '3.7' and python_version < '4.0'"}
Expand All @@ -32,12 +35,17 @@ requests-cache = "==1.0.0b1"
requests-oauthlib = {version="==1.3.1", python_version=">='3.4'"}
rich = "==13.5.2"
six = {version="==1.16.0", python_version=">='3.4'"}
textual = {version="==0.35.1", markers="python_version >= '3.7' and python_version < '4.0'"}
tqdm = "==4.66.1"
trogon = "==0.5.0"
typing-extensions = {version="==4.7.1", python_version=">='3.7'"}
uc-micro-py = {version="==1.0.2", python_version=">='3.7'"}
url-normalize = {version="==1.4.3", python_version=">='3.6'"}
urllib3 = "==2.0.4"
wcwidth = "==0.2.6"
websocket-client = "==1.6.2"
wrapt = {version="==1.15.0", python_version=">='3.5'"}
zipp = {version="==3.16.2", python_version=">='3.8'"}

[requires]
python_version = "3"
Expand Down
71 changes: 70 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ Commands:
self-update Update PlexTraktSync to the latest version using pipx
sync Perform sync between Plex and Trakt
trakt-login Log in to Trakt Account to obtain Access Token.
tui Open Textual TUI.
unmatched List media that has no match in Trakt or Plex
watch Listen to events from Plex
watched-shows Print a table of watched shows
Expand Down
2 changes: 2 additions & 0 deletions plextraktsync/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import click
from click import ClickException
from trogon import tui

from plextraktsync.factory import factory

Expand Down Expand Up @@ -38,6 +39,7 @@ def wrap(*args, **kwargs):
return decorator


@tui()
@click.group(invoke_without_command=True)
@click.option("--version", is_flag=True, help="Print version and exit")
@click.option("--no-cache", is_flag=True, help="Disable cache in for Trakt HTTP requests")
Expand Down
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ charset-normalizer==3.2.0
click==8.1.7
deprecated==1.2.14
idna==3.4; python_version >= '3.5'
importlib-metadata==6.8.0; python_version >= '3.8'
inquirerpy==0.3.4
linkify-it-py==2.0.2
markdown-it-py==3.0.0; python_version >= '3.7'
mdit-py-plugins==0.4.0
mdurl==0.1.2; python_version >= '3.7'
oauthlib==3.2.2
pfzy==0.3.4; python_version >= '3.7' and python_version < '4.0'
Expand All @@ -32,9 +35,14 @@ requests-oauthlib==1.3.1; python_version >= '3.4'
requests==2.31.0
rich==13.5.2
six==1.16.0; python_version >= '3.4'
textual==0.35.1; python_version >= '3.7' and python_version < '4.0'
tqdm==4.66.1
trogon==0.5.0
typing-extensions==4.7.1; python_version >= '3.7'
uc-micro-py==1.0.2; python_version >= '3.7'
url-normalize==1.4.3; python_version >= '3.6'
urllib3==2.0.4
wcwidth==0.2.6
websocket-client==1.6.2
wrapt==1.15.0; python_version >= '3.5'
zipp==3.16.2; python_version >= '3.8'

0 comments on commit 30ac661

Please sign in to comment.