register pause + resume as subcommands on the CLI

This commit is contained in:
onyx-and-iris 2025-06-27 08:17:16 +01:00
parent ef68915f6a
commit 3eb37295c2

View File

@ -5,6 +5,8 @@ from typing_extensions import override
from .errors import SimpleRecorderError
from .gui import SimpleRecorderWindow
from .pause import Pause
from .resume import Resume
from .start import Start
from .stop import Stop
@ -35,7 +37,7 @@ def theme_parser(value: str) -> str:
class SimpleRecorder(Command):
subcommand: Start | Stop | None = None
subcommand: Start | Stop | Pause | Resume | None = None
host: str = arg(default="localhost", env="OBS_HOST", help="OBS WebSocket host")
port: int = arg(default=4455, env="OBS_PORT", help="OBS WebSocket port")
password: str | None = arg(