mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-05-16 14:30:24 +01:00
add toggle alias tg
This commit is contained in:
parent
2b4c3add3c
commit
a9e8ef8f6d
@ -77,7 +77,7 @@ def unmute(ctx: typer.Context, input_name: str):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@app.command()
|
@app.command('toggle | tg')
|
||||||
def toggle(ctx: typer.Context, input_name: str):
|
def toggle(ctx: typer.Context, input_name: str):
|
||||||
"""Toggle an input."""
|
"""Toggle an input."""
|
||||||
if not _input_in_inputs(ctx, input_name):
|
if not _input_in_inputs(ctx, input_name):
|
||||||
|
@ -69,7 +69,7 @@ def status(ctx: typer.Context):
|
|||||||
typer.echo('Streaming is not in progress.')
|
typer.echo('Streaming is not in progress.')
|
||||||
|
|
||||||
|
|
||||||
@app.command()
|
@app.command('toggle | tg')
|
||||||
def toggle(ctx: typer.Context):
|
def toggle(ctx: typer.Context):
|
||||||
"""Toggle streaming."""
|
"""Toggle streaming."""
|
||||||
active, _ = _get_streaming_status(ctx)
|
active, _ = _get_streaming_status(ctx)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user