diff --git a/obsws_cli/filter.py b/obsws_cli/filter.py index 2d7a767..4ec59ab 100644 --- a/obsws_cli/filter.py +++ b/obsws_cli/filter.py @@ -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)) diff --git a/obsws_cli/group.py b/obsws_cli/group.py index 272a83b..903fa77 100644 --- a/obsws_cli/group.py +++ b/obsws_cli/group.py @@ -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)) diff --git a/obsws_cli/input.py b/obsws_cli/input.py index 4a5febb..a5670ee 100644 --- a/obsws_cli/input.py +++ b/obsws_cli/input.py @@ -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'): diff --git a/obsws_cli/sceneitem.py b/obsws_cli/sceneitem.py index 9fdf892..12bb629 100644 --- a/obsws_cli/sceneitem.py +++ b/obsws_cli/sceneitem.py @@ -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'):