From 88635ed15209023cb7648e9fe3c2c9280f6de5f2 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 20 Apr 2025 13:39:09 +0100 Subject: [PATCH] rename item command group to scene-item update tests, rename test_item.py to test_sceneitem.py update README minor bump --- README.md | 8 ++++---- obsws_cli/__about__.py | 2 +- obsws_cli/app.py | 4 ++-- obsws_cli/{item.py => sceneitem.py} | 0 tests/{test_item.py => test_sceneitem.py} | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) rename obsws_cli/{item.py => sceneitem.py} (100%) rename tests/{test_item.py => test_sceneitem.py} (83%) diff --git a/README.md b/README.md index 2f45435..eb0f9aa 100644 --- a/README.md +++ b/README.md @@ -88,27 +88,27 @@ obsws-cli scene current obsws-cli scene switch LIVE ``` -#### Item +#### Scene Item - show: Show an item in a scene. - args: ```console -obsws-cli item show START "Colour Source" +obsws-cli scene-item show START "Colour Source" ``` - hide: Hide an item in a scene. - args: ```console -obsws-cli item hide START "Colour Source" +obsws-cli scene-item hide START "Colour Source" ``` - list: List all items in a scene. - args: ```console -obsws-cli item list LIVE +obsws-cli scene-item list LIVE ``` #### Group diff --git a/obsws_cli/__about__.py b/obsws_cli/__about__.py index 6a444f2..d6c79aa 100644 --- a/obsws_cli/__about__.py +++ b/obsws_cli/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2025-present onyx-and-iris # # SPDX-License-Identifier: MIT -__version__ = "0.2.0" +__version__ = "0.3.0" diff --git a/obsws_cli/app.py b/obsws_cli/app.py index 8aef374..5b92a43 100644 --- a/obsws_cli/app.py +++ b/obsws_cli/app.py @@ -8,7 +8,7 @@ import typer from pydantic import ConfigDict from pydantic_settings import BaseSettings -from . import group, input, item, record, scene, stream +from . import group, input, record, scene, sceneitem, stream class Settings(BaseSettings): @@ -31,7 +31,7 @@ class Settings(BaseSettings): app = typer.Typer() app.add_typer(scene.app, name='scene') -app.add_typer(item.app, name='item') +app.add_typer(sceneitem.app, name='scene-item') app.add_typer(group.app, name='group') app.add_typer(input.app, name='input') app.add_typer(record.app, name='record') diff --git a/obsws_cli/item.py b/obsws_cli/sceneitem.py similarity index 100% rename from obsws_cli/item.py rename to obsws_cli/sceneitem.py diff --git a/tests/test_item.py b/tests/test_sceneitem.py similarity index 83% rename from tests/test_item.py rename to tests/test_sceneitem.py index 42f7495..a33a409 100644 --- a/tests/test_item.py +++ b/tests/test_sceneitem.py @@ -9,7 +9,7 @@ runner = CliRunner() def test_item_list(): """Test the item list command.""" - result = runner.invoke(app, ['item', 'list', 'pytest']) + result = runner.invoke(app, ['scene-item', 'list', 'pytest']) assert result.exit_code == 0 assert 'pytest_input' in result.stdout assert 'pytest_input_2' in result.stdout