Files
clan-core/pkgs/clan-app/tests/helpers/cli.py
2024-06-05 11:24:59 +02:00

16 lines
310 B
Python

import logging
import shlex
from clan_cli.custom_logger import get_caller
from clan_app import main
log = logging.getLogger(__name__)
class Cli:
def run(self, args: list[str]) -> None:
cmd = shlex.join(["clan", *args])
log.debug(f"$ {cmd} \nCaller: {get_caller()}")
main(args)