move func

This commit is contained in:
onyx-and-iris 2025-04-30 21:26:55 +01:00
parent 944eeea244
commit 6b22e02bb2

View File

@ -58,15 +58,6 @@ for module in (
app.add_typer(module.app, name=module.__name__.split('.')[-1]) app.add_typer(module.app, name=module.__name__.split('.')[-1])
@app.command()
def version(ctx: typer.Context):
"""Get the OBS Client and WebSocket versions."""
resp = ctx.obj.get_version()
typer.echo(
f'OBS Client version: {resp.obs_version} with WebSocket version: {resp.obs_web_socket_version}'
)
@app.callback() @app.callback()
def main( def main(
ctx: typer.Context, ctx: typer.Context,
@ -95,3 +86,12 @@ def main(
timeout=settings.TIMEOUT, timeout=settings.TIMEOUT,
) )
) )
@app.command()
def version(ctx: typer.Context):
"""Get the OBS Client and WebSocket versions."""
resp = ctx.obj.get_version()
typer.echo(
f'OBS Client version: {resp.obs_version} with WebSocket version: {resp.obs_web_socket_version}'
)