From 2ca89515be5deaf6137fb5773a8e46e1731eed41 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 5 Mar 2026 20:12:36 +0000 Subject: [PATCH] add command lock/unlock patch bump --- pyproject.toml | 2 +- src/vban_cli/command.py | 20 ++++++++++++++++++++ uv.lock | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b05a4b9..4970405 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "vban-cli" -version = "0.12.4" +version = "0.12.5" description = "A command-line interface for Voicemeeter leveraging VBAN." readme = "README.md" license = { text = "LICENSE" } diff --git a/src/vban_cli/command.py b/src/vban_cli/command.py index 6331def..27fdb94 100644 --- a/src/vban_cli/command.py +++ b/src/vban_cli/command.py @@ -50,3 +50,23 @@ def restart( """Restart the Voicemeeter engine.""" ctx.client.command.restart() app.console.print('Voicemeeter engine should now be restarting.') + + +@app.command(name='lock') +def lock( + *, + ctx: Annotated[Context, Parameter(parse=False)], +): + """Lock the Voicemeeter GUI.""" + ctx.client.command.lock = True + app.console.print('Voicemeeter GUI should now be locked.') + + +@app.command(name='unlock') +def unlock( + *, + ctx: Annotated[Context, Parameter(parse=False)], +): + """Unlock the Voicemeeter GUI.""" + ctx.client.command.lock = False + app.console.print('Voicemeeter GUI should now be unlocked.') diff --git a/uv.lock b/uv.lock index d897f07..73e2f74 100644 --- a/uv.lock +++ b/uv.lock @@ -124,7 +124,7 @@ wheels = [ [[package]] name = "vban-cli" -version = "0.12.4" +version = "0.12.5" source = { editable = "." } dependencies = [ { name = "cyclopts" },