mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-06-07 12:10:32 +01:00
raise typer.Exit() to signify we return early with exit code 0
This commit is contained in:
parent
ec444d9cdd
commit
75fdbf5ad8
@ -32,7 +32,7 @@ def list(ctx: typer.Context, source_name: str):
|
||||
|
||||
if not resp.filters:
|
||||
out_console.print(f'No filters found for source {source_name}')
|
||||
return
|
||||
raise typer.Exit()
|
||||
|
||||
table = Table(title=f'Filters for Source: {source_name}', padding=(0, 2))
|
||||
|
||||
|
@ -42,7 +42,7 @@ def list(
|
||||
|
||||
if not groups:
|
||||
out_console.print(f"No groups found in scene '{scene_name}'.")
|
||||
return
|
||||
raise typer.Exit()
|
||||
|
||||
table = Table(title=f'Groups in Scene: {scene_name}', padding=(0, 2))
|
||||
|
||||
|
@ -49,7 +49,7 @@ def list(
|
||||
|
||||
if not inputs:
|
||||
out_console.print('No inputs found.')
|
||||
return
|
||||
raise typer.Exit()
|
||||
|
||||
table = Table(title='Inputs', padding=(0, 2))
|
||||
for column in ('Input Name', 'Kind'):
|
||||
|
@ -52,7 +52,7 @@ def list(
|
||||
|
||||
if not items:
|
||||
out_console.print(f"No items found in scene '{scene_name}'.")
|
||||
return
|
||||
raise typer.Exit()
|
||||
|
||||
table = Table(title=f'Items in Scene: {scene_name}', padding=(0, 2))
|
||||
for column in ('Item ID', 'Item Name', 'In Group', 'Enabled'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user