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]
|
[project]
|
||||||
name = "vban-cli"
|
name = "vban-cli"
|
||||||
version = "0.12.6"
|
version = "0.12.7"
|
||||||
description = "A command-line interface for Voicemeeter leveraging VBAN."
|
description = "A command-line interface for Voicemeeter leveraging VBAN."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = { text = "LICENSE" }
|
license = { text = "LICENSE" }
|
||||||
@@ -20,8 +20,9 @@ classifiers = [
|
|||||||
[project.scripts]
|
[project.scripts]
|
||||||
vban-cli = "vban_cli.app:run"
|
vban-cli = "vban_cli.app:run"
|
||||||
|
|
||||||
[tool.uv]
|
[build-system]
|
||||||
package = true
|
requires = ["uv_build>=0.10.9,<0.11.0"]
|
||||||
|
build-backend = "uv_build"
|
||||||
|
|
||||||
[tool.uv.sources]
|
[tool.uv.sources]
|
||||||
vban-cmd = { path = "../vban-cmd-python", editable = true }
|
vban-cmd = { path = "../vban-cmd-python", editable = true }
|
||||||
|
|||||||
@@ -42,13 +42,15 @@ def launcher(
|
|||||||
*tokens: Annotated[str, Parameter(show=False, allow_leading_hyphen=True)],
|
*tokens: Annotated[str, Parameter(show=False, allow_leading_hyphen=True)],
|
||||||
vban_config: Annotated[VBANConfig, Parameter()] = VBANConfig(),
|
vban_config: Annotated[VBANConfig, Parameter()] = VBANConfig(),
|
||||||
):
|
):
|
||||||
|
"""A command-line interface for Voicemeeter/Matrix over VBAN."""
|
||||||
command, bound, _ = app.parse_args(tokens)
|
command, bound, _ = app.parse_args(tokens)
|
||||||
if tokens[0] == '--install-completion':
|
|
||||||
return command(*bound.args, **bound.kwargs)
|
|
||||||
|
|
||||||
disable_rt_listeners = False
|
disable_rt_listeners = False
|
||||||
if command.__name__ == 'sendtext':
|
match command.__name__:
|
||||||
disable_rt_listeners = True
|
case '_install_completion_command':
|
||||||
|
return command(*bound.args, **bound.kwargs)
|
||||||
|
case 'sendtext':
|
||||||
|
disable_rt_listeners = True
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with vban_cmd.api(
|
with vban_cmd.api(
|
||||||
|
|||||||
Reference in New Issue
Block a user