Lazy load info command
MODIFY
plextraktsync/cli.py
plextraktsync/cli.py
from functools import wraps
import click
-from plextraktsync.commands.info import info
from plextraktsync.commands.inspect import inspect
from plextraktsync.commands.login import login
from plextraktsync.commands.plex_login import plex_login
@@ -81,6 +80,15 @@ def clear_collections():
pass
+@command()
+def info():
+ """
+ Print application and environment version info
+ """
+
+ pass
+
+
cli.add_command(cache)
cli.add_command(clear_collections)
cli.add_command(info)

MODIFY
plextraktsync/commands/info.py
plextraktsync/commands/info.py
import sys
-import click
from plexapi import VERSION as PLEX_API_VERSION
from trakt import __version__ as TRAKT_API_VERSION
from plextraktsync.version import version as get_version
-@click.command()
def info():
- """
- Print application and environment version info
- """
-
print(f"PlexTraktSync Version: {get_version()}")
py_version = sys.version.replace("\n", "")

Lazy load info command