From 431452d35cf7f02d5eb49e44ca93a79b0772d766 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 27 Mar 2026 07:13:31 +0000 Subject: [PATCH] use value from parse_args instead of indexing into tokens. patch bump --- pyproject.toml | 7 ++++--- src/vban_cli/app.py | 10 ++++++---- uv.lock | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 11eecf6..3772b08 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "vban-cli" -version = "0.12.6" +version = "0.12.7" description = "A command-line interface for Voicemeeter leveraging VBAN." readme = "README.md" license = { text = "LICENSE" } @@ -20,8 +20,9 @@ classifiers = [ [project.scripts] vban-cli = "vban_cli.app:run" -[tool.uv] -package = true +[build-system] +requires = ["uv_build>=0.10.9,<0.11.0"] +build-backend = "uv_build" [tool.uv.sources] vban-cmd = { path = "../vban-cmd-python", editable = true } diff --git a/src/vban_cli/app.py b/src/vban_cli/app.py index fd75d2f..6b46f1c 100644 --- a/src/vban_cli/app.py +++ b/src/vban_cli/app.py @@ -42,13 +42,15 @@ def launcher( *tokens: Annotated[str, Parameter(show=False, allow_leading_hyphen=True)], vban_config: Annotated[VBANConfig, Parameter()] = VBANConfig(), ): + """A command-line interface for Voicemeeter/Matrix over VBAN.""" command, bound, _ = app.parse_args(tokens) - if tokens[0] == '--install-completion': - return command(*bound.args, **bound.kwargs) disable_rt_listeners = False - if command.__name__ == 'sendtext': - disable_rt_listeners = True + match command.__name__: + case '_install_completion_command': + return command(*bound.args, **bound.kwargs) + case 'sendtext': + disable_rt_listeners = True try: with vban_cmd.api( diff --git a/uv.lock b/uv.lock index 1c4cb60..df6b22e 100644 --- a/uv.lock +++ b/uv.lock @@ -189,7 +189,7 @@ wheels = [ [[package]] name = "vban-cli" -version = "0.12.6" +version = "0.12.7" source = { editable = "." } dependencies = [ { name = "cyclopts" },