From 31838800efe0473cdb169cbee7ee33f70c442487 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 22 Apr 2025 00:33:46 +0100 Subject: [PATCH] let the user know the new input state --- obsws_cli/__about__.py | 2 +- obsws_cli/input.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/obsws_cli/__about__.py b/obsws_cli/__about__.py index f2aa0d5..54919ea 100644 --- a/obsws_cli/__about__.py +++ b/obsws_cli/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2025-present onyx-and-iris # # SPDX-License-Identifier: MIT -__version__ = "0.6.8" +__version__ = "0.6.9" diff --git a/obsws_cli/input.py b/obsws_cli/input.py index 481bc20..ae7e3b8 100644 --- a/obsws_cli/input.py +++ b/obsws_cli/input.py @@ -57,6 +57,8 @@ def mute(ctx: typer.Context, input_name: str): muted=True, ) + typer.echo(f"Input '{input_name}' muted.") + @app.command() def unmute(ctx: typer.Context, input_name: str): @@ -73,6 +75,8 @@ def unmute(ctx: typer.Context, input_name: str): muted=False, ) + typer.echo(f"Input '{input_name}' unmuted.") + @app.command('toggle | tg') def toggle(ctx: typer.Context, input_name: str): @@ -92,3 +96,7 @@ def toggle(ctx: typer.Context, input_name: str): name=input_name, muted=new_state, ) + + typer.echo( + f"Input '{input_name}' {'muted' if new_state else 'unmuted'}.", + )