mirror of
https://github.com/onyx-and-iris/vban-cli.git
synced 2026-03-12 01:49:11 +00:00
add command lock/unlock
patch bump
This commit is contained in:
parent
6cd92a2975
commit
2ca89515be
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "vban-cli"
|
name = "vban-cli"
|
||||||
version = "0.12.4"
|
version = "0.12.5"
|
||||||
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" }
|
||||||
|
|||||||
@ -50,3 +50,23 @@ def restart(
|
|||||||
"""Restart the Voicemeeter engine."""
|
"""Restart the Voicemeeter engine."""
|
||||||
ctx.client.command.restart()
|
ctx.client.command.restart()
|
||||||
app.console.print('Voicemeeter engine should now be restarting.')
|
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.')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user