clan-cli: simplify cli helper

This commit is contained in:
DavHau
2024-07-09 19:16:18 +07:00
parent 9407902398
commit 4898706480
18 changed files with 29 additions and 62 deletions

View File

@@ -8,8 +8,7 @@ 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)
def run(args: list[str]) -> None:
cmd = shlex.join(["clan", *args])
log.debug(f"$ {cmd} \nCaller: {get_caller()}")
main(args)