From a9e8ef8f6dced6a199bb2709d95877349c78143c Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 20 Apr 2025 20:47:27 +0100 Subject: [PATCH] add toggle alias tg --- obsws_cli/input.py | 2 +- obsws_cli/stream.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/obsws_cli/input.py b/obsws_cli/input.py index a3f4a04..68ae9b0 100644 --- a/obsws_cli/input.py +++ b/obsws_cli/input.py @@ -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): """Toggle an input.""" if not _input_in_inputs(ctx, input_name): diff --git a/obsws_cli/stream.py b/obsws_cli/stream.py index 6ecad62..6a2c4ac 100644 --- a/obsws_cli/stream.py +++ b/obsws_cli/stream.py @@ -69,7 +69,7 @@ def status(ctx: typer.Context): typer.echo('Streaming is not in progress.') -@app.command() +@app.command('toggle | tg') def toggle(ctx: typer.Context): """Toggle streaming.""" active, _ = _get_streaming_status(ctx)