mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-06-07 20:20:32 +01:00
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:
parent
618cdefc17
commit
88635ed152
@ -88,27 +88,27 @@ obsws-cli scene current
|
|||||||
obsws-cli scene switch LIVE
|
obsws-cli scene switch LIVE
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Item
|
#### Scene Item
|
||||||
|
|
||||||
- show: Show an item in a scene.
|
- show: Show an item in a scene.
|
||||||
- args: <scene_name> <item_name>
|
- args: <scene_name> <item_name>
|
||||||
|
|
||||||
```console
|
```console
|
||||||
obsws-cli item show START "Colour Source"
|
obsws-cli scene-item show START "Colour Source"
|
||||||
```
|
```
|
||||||
|
|
||||||
- hide: Hide an item in a scene.
|
- hide: Hide an item in a scene.
|
||||||
- args: <scene_name> <item_name>
|
- args: <scene_name> <item_name>
|
||||||
|
|
||||||
```console
|
```console
|
||||||
obsws-cli item hide START "Colour Source"
|
obsws-cli scene-item hide START "Colour Source"
|
||||||
```
|
```
|
||||||
|
|
||||||
- list: List all items in a scene.
|
- list: List all items in a scene.
|
||||||
- args: <scene_name>
|
- args: <scene_name>
|
||||||
|
|
||||||
```console
|
```console
|
||||||
obsws-cli item list LIVE
|
obsws-cli scene-item list LIVE
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Group
|
#### Group
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online>
|
# SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
__version__ = "0.2.0"
|
__version__ = "0.3.0"
|
||||||
|
@ -8,7 +8,7 @@ import typer
|
|||||||
from pydantic import ConfigDict
|
from pydantic import ConfigDict
|
||||||
from pydantic_settings import BaseSettings
|
from pydantic_settings import BaseSettings
|
||||||
|
|
||||||
from . import group, input, item, record, scene, stream
|
from . import group, input, record, scene, sceneitem, stream
|
||||||
|
|
||||||
|
|
||||||
class Settings(BaseSettings):
|
class Settings(BaseSettings):
|
||||||
@ -31,7 +31,7 @@ class Settings(BaseSettings):
|
|||||||
|
|
||||||
app = typer.Typer()
|
app = typer.Typer()
|
||||||
app.add_typer(scene.app, name='scene')
|
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(group.app, name='group')
|
||||||
app.add_typer(input.app, name='input')
|
app.add_typer(input.app, name='input')
|
||||||
app.add_typer(record.app, name='record')
|
app.add_typer(record.app, name='record')
|
||||||
|
@ -9,7 +9,7 @@ runner = CliRunner()
|
|||||||
|
|
||||||
def test_item_list():
|
def test_item_list():
|
||||||
"""Test the item list command."""
|
"""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 result.exit_code == 0
|
||||||
assert 'pytest_input' in result.stdout
|
assert 'pytest_input' in result.stdout
|
||||||
assert 'pytest_input_2' in result.stdout
|
assert 'pytest_input_2' in result.stdout
|
Loading…
x
Reference in New Issue
Block a user