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}' + )