mirror of
https://github.com/onyx-and-iris/vban-cli.git
synced 2026-04-15 18:23:29 +00:00
use value from parse_args instead of indexing into tokens.
patch bump
This commit is contained in:
@@ -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 }
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user