rename item command group to scene-item

update tests, rename test_item.py to test_sceneitem.py

update README

minor bump
This commit is contained in:
onyx-and-iris 2025-04-20 13:39:09 +01:00
parent 618cdefc17
commit 88635ed152
5 changed files with 8 additions and 8 deletions

View File

@ -88,27 +88,27 @@ obsws-cli scene current
obsws-cli scene switch LIVE
```
#### Item
#### Scene Item
- show: Show an item in a scene.
- args: <scene_name> <item_name>
```console
obsws-cli item show START "Colour Source"
obsws-cli scene-item show START "Colour Source"
```
- hide: Hide an item in a scene.
- args: <scene_name> <item_name>
```console
obsws-cli item hide START "Colour Source"
obsws-cli scene-item hide START "Colour Source"
```
- list: List all items in a scene.
- args: <scene_name>
```console
obsws-cli item list LIVE
obsws-cli scene-item list LIVE
```
#### Group

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online>
#
# SPDX-License-Identifier: MIT
__version__ = "0.2.0"
__version__ = "0.3.0"

View File

@ -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')

View File

@ -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