Print some diagnostics with "login" command
from plex_trakt_sync.commands.plex_login import has_plex_token, plex_login_autoconfig
from plex_trakt_sync.commands.trakt_login import has_trakt_token, trakt_login_autoconfig
+from plex_trakt_sync.style import comment, success, highlight
def ensure_login():
if not has_plex_token():
plex_login_autoconfig()
+
if not has_trakt_token():
trakt_login_autoconfig()
@@ -16,4 +18,7 @@ def login():
"""
Log in to Plex and Trakt if needed
"""
+
+ click.echo(highlight("Checking Plex and Trakt logins"))
ensure_login()
+ click.echo(success("Success!"))
