Compare commits

..

No commits in common. "704c8c1bf433b2d1a8656d0bb16b39f91c22df8d" and "ca0f01ef79d88768dbd4f0c7c02f2493a2af9e31" have entirely different histories.

5 changed files with 4 additions and 59 deletions

View File

@ -5,21 +5,6 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# [0.14.0] - 2025-05-27
### Added
- record directory command, see [directory under Record](https://github.com/onyx-and-iris/obsws-cli?tab=readme-ov-file#record)
### Changed
- project open <source_name> arg now optional, if not passed the current scene will be projected
- record stop now prints the output path of the recording.
### Fixed
- Index column alignment in projector list-monitors now centred.
# [0.13.0] - 2025-05-26
### Added

View File

@ -324,19 +324,6 @@ obsws-cli record resume
obsws-cli record pause
```
- directory: Get or set the recording directory.
*optional*
- args: <record_directory>
- if not passed the current record directory will be printed.
```console
obsws-cli record directory
obsws-cli record directory "/home/me/obs-vids/"
obsws-cli record directory "C:/Users/me/Videos"
```
#### Stream
- start: Start streaming.

View File

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

View File

@ -1,8 +1,5 @@
"""module for controlling OBS recording functionality."""
from pathlib import Path
from typing import Annotated, Optional
import typer
from rich.console import Console
@ -48,8 +45,8 @@ def stop(ctx: typer.Context):
err_console.print('Recording is not in progress, cannot stop.')
raise typer.Exit(1)
resp = ctx.obj.stop_record()
out_console.print(f'Recording stopped successfully. Saved to: {resp.output_path}')
ctx.obj.stop_record()
out_console.print('Recording stopped successfully.')
@app.command('toggle | tg')
@ -103,27 +100,3 @@ def pause(ctx: typer.Context):
ctx.obj.pause_record()
out_console.print('Recording paused successfully.')
@app.command('directory | d')
def directory(
ctx: typer.Context,
record_directory: Annotated[
Optional[Path],
# Since the CLI and OBS may be running on different platforms,
# we won't validate the path here.
typer.Argument(
file_okay=False,
dir_okay=True,
help='Directory to set for recording.',
),
] = None,
):
"""Get or set the recording directory."""
if record_directory is not None:
ctx.obj.set_record_directory(str(record_directory))
out_console.print(f'Recording directory updated to: {record_directory}')
else:
out_console.print(
f'Recording directory: {ctx.obj.get_record_directory().record_directory}'
)

View File

@ -23,7 +23,7 @@ def test_record_start_status_stop():
result = runner.invoke(app, ['record', 'stop'])
assert result.exit_code == 0
assert 'Recording stopped successfully. Saved to:' in result.stdout
assert 'Recording stopped successfully.' in result.stdout
time.sleep(0.5) # Wait for the recording to stop