mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-05-16 06:20:23 +01:00
let the user know the new input state
This commit is contained in:
parent
df18d9c192
commit
31838800ef
@ -1,4 +1,4 @@
|
||||
# SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online>
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
__version__ = "0.6.8"
|
||||
__version__ = "0.6.9"
|
||||
|
@ -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'}.",
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user