mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-06-07 12:10:32 +01:00
wrap scene switch annotations with Annotated
This commit is contained in:
parent
59f52417cd
commit
657fa84ea3
@ -20,7 +20,7 @@ def main():
|
||||
|
||||
|
||||
@app.command('list | ls')
|
||||
def list(ctx: typer.Context):
|
||||
def list_(ctx: typer.Context):
|
||||
"""List all scenes."""
|
||||
resp = ctx.obj.get_scene_list()
|
||||
scenes = (
|
||||
@ -64,7 +64,7 @@ def current(
|
||||
@app.command('switch | set')
|
||||
def switch(
|
||||
ctx: typer.Context,
|
||||
scene_name: str,
|
||||
scene_name: Annotated[str, typer.Argument(help='Name of the scene to switch to')],
|
||||
preview: Annotated[
|
||||
bool,
|
||||
typer.Option(help='Switch to the preview scene instead of the program scene'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user