From 6b22e02bb294b8561932a1e0affbc036630c80b6 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 30 Apr 2025 21:26:55 +0100 Subject: [PATCH] move func --- obsws_cli/app.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/obsws_cli/app.py b/obsws_cli/app.py index ef037a2..e60b2ea 100644 --- a/obsws_cli/app.py +++ b/obsws_cli/app.py @@ -58,15 +58,6 @@ for module in ( 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() def main( ctx: typer.Context, @@ -95,3 +86,12 @@ def main( 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}' + )