use value from parse_args instead of indexing into tokens.

patch bump
This commit is contained in:
2026-03-27 07:13:31 +00:00
parent 185e9f2287
commit 431452d35c
3 changed files with 11 additions and 8 deletions

View File

@@ -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 }

View File

@@ -42,12 +42,14 @@ 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':
match command.__name__:
case '_install_completion_command':
return command(*bound.args, **bound.kwargs)
case 'sendtext':
disable_rt_listeners = True
try:

2
uv.lock generated
View File

@@ -189,7 +189,7 @@ wheels = [
[[package]]
name = "vban-cli"
version = "0.12.6"
version = "0.12.7"
source = { editable = "." }
dependencies = [
{ name = "cyclopts" },