add strip label command

patch bump
This commit is contained in:
onyx-and-iris 2026-03-05 20:04:40 +00:00
parent 4dd01a0e99
commit 36a8ec124a
3 changed files with 22 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[project] [project]
name = "vban-cli" name = "vban-cli"
version = "0.12.2" version = "0.12.3"
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" }

View File

@ -270,3 +270,23 @@ def b3(
app.console.print(ctx.client.strip[index].B3) app.console.print(ctx.client.strip[index].B3)
return return
ctx.client.strip[index].B3 = new_value ctx.client.strip[index].B3 = new_value
@app.command(name='label')
def label(
new_value: Annotated[Optional[str], Argument()] = None,
*,
index: Annotated[int, Parameter(parse=False)],
ctx: Annotated[Context, Parameter(parse=False)],
):
"""Get or set the label of the specified strip.
Parameters
----------
new_value : str, optional
If provided, sets the label to this value. If not provided, the current label is printed.
"""
if new_value is None:
app.console.print(ctx.client.strip[index].label)
return
ctx.client.strip[index].label = new_value

2
uv.lock generated
View File

@ -124,7 +124,7 @@ wheels = [
[[package]] [[package]]
name = "vban-cli" name = "vban-cli"
version = "0.12.2" version = "0.12.3"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "cyclopts" }, { name = "cyclopts" },