fix: typer exit codes, JWT 7d expiry, shared test fixtures, AdminTab query, mantine 9.6.3

This commit is contained in:
Jonas Miederer 2026-09-30 22:27:58 +02:00
parent 03af41e837
commit 696db34c90
16 changed files with 210 additions and 251 deletions

View file

@ -8,7 +8,6 @@ Usage:
from __future__ import annotations
import json
import sys
import httpx
import typer
@ -32,7 +31,7 @@ def main(
name: str | None = typer.Option(None, "--name"),
author: str = typer.Option("", "--author"),
no_deploy: bool = typer.Option(False, "--no-deploy"),
) -> int:
) -> None:
"""Import a flow from Langflow via the running API (post() stays importable)."""
result = post(
api,
@ -45,8 +44,9 @@ def main(
},
)
print(json.dumps(result, indent=2, ensure_ascii=False))
return 0 if result["status"] in (200, 201) else 1
if result["status"] not in (200, 201):
raise typer.Exit(1)
if __name__ == "__main__":
sys.exit(typer.run(main))
typer.run(main)