project open source_name arg now optional.

defaults to current scene

patch bump
This commit is contained in:
2025-05-26 21:37:32 +01:00
parent a7385e58c6
commit 2c7302cfde
3 changed files with 14 additions and 2 deletions

View File

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

View File

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