Lazy load trakt-login command
MODIFY
plextraktsync/cli.py
plextraktsync/cli.py
import click
from plextraktsync.commands.self_update import enable_self_update, self_update
-from plextraktsync.commands.trakt_login import trakt_login
from plextraktsync.commands.unmatched import unmatched
from plextraktsync.commands.watch import watch
from plextraktsync.factory import factory
@@ -179,6 +178,14 @@ def sync():
pass
+@command()
+def trakt_login():
+ """
+ Log in to Trakt Account to obtain Access Token.
+ """
+ pass
+
+
cli.add_command(cache)
cli.add_command(clear_collections)
cli.add_command(info)

MODIFY
plextraktsync/commands/trakt_login.py
plextraktsync/commands/trakt_login.py
@@ -52,7 +52,6 @@ def trakt_login_autoconfig():
login()
-@click.command()
def trakt_login():
"""
Log in to Trakt Account to obtain Access Token.

Lazy load trakt-login command