From 5d7ecefc27eea87e9d70fde372d9387d57c74679 Mon Sep 17 00:00:00 2001 From: Akseli Lehtniemi <60463103+Akaseli@users.noreply.github.com> Date: Tue, 28 Jul 2026 12:20:04 +0300 Subject: [PATCH] fix: cli import --- src/matrixrmapi/console.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/matrixrmapi/console.py b/src/matrixrmapi/console.py index 935a682..57e2b6c 100644 --- a/src/matrixrmapi/console.py +++ b/src/matrixrmapi/console.py @@ -9,7 +9,6 @@ import aiohttp from matrixrmapi import __version__ -from matrixrmapi.app import get_app LOGGER = logging.getLogger(__name__) @@ -76,6 +75,9 @@ def dump_openapi(ctx: click.Context) -> None: """ Dump autogenerate openapi spec as JSON """ + # Import only here to avoid waiting on other commands + from matrixrmapi.app import get_app + app = get_app() click.echo(json.dumps(app.openapi())) ctx.exit(0)