let the user know the new input state

This commit is contained in:
onyx-and-iris 2025-04-22 00:33:46 +01:00
parent df18d9c192
commit 31838800ef
2 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online> # SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online>
# #
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
__version__ = "0.6.8" __version__ = "0.6.9"

View File

@ -57,6 +57,8 @@ def mute(ctx: typer.Context, input_name: str):
muted=True, muted=True,
) )
typer.echo(f"Input '{input_name}' muted.")
@app.command() @app.command()
def unmute(ctx: typer.Context, input_name: str): def unmute(ctx: typer.Context, input_name: str):
@ -73,6 +75,8 @@ def unmute(ctx: typer.Context, input_name: str):
muted=False, muted=False,
) )
typer.echo(f"Input '{input_name}' unmuted.")
@app.command('toggle | tg') @app.command('toggle | tg')
def toggle(ctx: typer.Context, input_name: str): def toggle(ctx: typer.Context, input_name: str):
@ -92,3 +96,7 @@ def toggle(ctx: typer.Context, input_name: str):
name=input_name, name=input_name,
muted=new_state, muted=new_state,
) )
typer.echo(
f"Input '{input_name}' {'muted' if new_state else 'unmuted'}.",
)