add command lock/unlock

patch bump
This commit is contained in:
2026-03-05 20:12:36 +00:00
parent 6cd92a2975
commit 2ca89515be
3 changed files with 22 additions and 2 deletions

View File

@@ -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.')