mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-06-07 20:20:32 +01:00
return 0 for empty lists and write to stdout
This commit is contained in:
parent
c71aa82914
commit
9fa61351d0
@ -48,8 +48,8 @@ def list(
|
||||
]
|
||||
|
||||
if not inputs:
|
||||
err_console.print('No inputs found.')
|
||||
raise typer.Exit(1)
|
||||
out_console.print('No inputs found.')
|
||||
return
|
||||
|
||||
table = Table(title='Inputs', padding=(0, 2))
|
||||
for column in ('Input Name', 'Kind'):
|
||||
|
@ -39,8 +39,8 @@ def list(
|
||||
items = [item.get('sourceName') for item in resp.scene_items]
|
||||
|
||||
if not items:
|
||||
err_console.print(f"No items found in scene '{scene_name}'.")
|
||||
raise typer.Exit(1)
|
||||
out_console.print(f"No items found in scene '{scene_name}'.")
|
||||
return
|
||||
|
||||
table = Table(title=f'Items in Scene: {scene_name}', padding=(0, 2))
|
||||
table.add_column('Item Name', justify='left', style='cyan')
|
||||
|
Loading…
x
Reference in New Issue
Block a user