add toggle alias tg

This commit is contained in:
onyx-and-iris 2025-04-20 20:47:27 +01:00
parent 2b4c3add3c
commit a9e8ef8f6d
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

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