mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-06-07 20:20:32 +01:00
project open source_name arg now optional.
defaults to current scene patch bump
This commit is contained in:
parent
a7385e58c6
commit
2c7302cfde
@ -549,9 +549,13 @@ obsws-cli projector list-monitors
|
||||
- --monitor-index: Index of the monitor to open the projector on.
|
||||
- defaults to 0
|
||||
|
||||
*optional*
|
||||
- args: <source_name>
|
||||
- defaults to current scene
|
||||
|
||||
```console
|
||||
obsws-cli project open
|
||||
|
||||
obsws-cli projector open --monitor-index=1 "Scene"
|
||||
```
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online>
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
__version__ = "0.13.0"
|
||||
__version__ = "0.13.1"
|
||||
|
@ -45,13 +45,21 @@ def list_monitors(ctx: typer.Context):
|
||||
@app.command('open | o')
|
||||
def open(
|
||||
ctx: typer.Context,
|
||||
source_name: str,
|
||||
monitor_index: Annotated[
|
||||
int,
|
||||
typer.Option(help='Index of the monitor to open the projector on.'),
|
||||
] = 0,
|
||||
source_name: Annotated[
|
||||
str,
|
||||
typer.Argument(
|
||||
help='Name of the source to project. (optional, defaults to current scene)'
|
||||
),
|
||||
] = '',
|
||||
):
|
||||
"""Open a fullscreen projector for a source on a specific monitor."""
|
||||
if not source_name:
|
||||
source_name = ctx.obj.get_current_program_scene().scene_name
|
||||
|
||||
ctx.obj.open_source_projector(
|
||||
source_name=source_name,
|
||||
monitor_index=monitor_index,
|
||||
|
Loading…
x
Reference in New Issue
Block a user