import logging
import shlex

from clan_cli.custom_logger import get_caller

from clan_app import main

log = logging.getLogger(__name__)


def run(args: list[str]) -> None:
    cmd = shlex.join(["clan", *args])
    log.debug(f"$ {cmd} \nCaller: {get_caller()}")
    main(args)
