feat: by default check for updates when any command is ran

This commit is contained in:
benex
2024-11-16 22:47:04 +03:00
parent 0b3615c9f5
commit c65a1a2815
3 changed files with 20 additions and 1 deletions

View File

@@ -226,6 +226,17 @@ def run_cli(
from .config import Config
ctx.obj = Config()
if ctx.obj.check_for_updates:
from .app_updater import check_for_updates
import time
is_latest = check_for_updates()
if not is_latest:
print(
"You are running an older version of fastanime please update to get the latest features"
)
time.sleep(10)
ctx.obj.manga = manga
if log:
import logging