#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Point d'entrée pour lancer anime-sama-cli depuis la racine du dépôt (développement).
Une fois installé via pip, utilisez la commande : anime-sama-cli
"""
from __future__ import annotations

import sys
from pathlib import Path

# Permettre l'exécution depuis la racine du dépôt sans installer le package
_REPO_ROOT = Path(__file__).resolve().parent
_src = _REPO_ROOT / "src"
if _src.is_dir() and (_src / "anime_sama_api").is_dir() and str(_src) not in sys.path:
    sys.path.insert(0, str(_src))

from anime_sama_api.cli_standalone import main

if __name__ == "__main__":
    main()
