fix: typer exit codes, JWT 7d expiry, shared test fixtures, AdminTab query, mantine 9.6.3
This commit is contained in:
parent
03af41e837
commit
696db34c90
16 changed files with 210 additions and 251 deletions
|
|
@ -84,13 +84,13 @@ def main(
|
|||
pull: bool = typer.Option(False, "--pull", help="export all Langflow flows first"),
|
||||
sync: bool = typer.Option(False, "--sync", help="reconcile backend/flows into DB + LFX"),
|
||||
dir: str | None = typer.Option(None, "--dir", help="flows directory"),
|
||||
) -> int:
|
||||
) -> None:
|
||||
"""Reconcile flows (typer CLI; run_sync/run_full_pass stay importable)."""
|
||||
if not pull and not sync:
|
||||
sync = True
|
||||
args = type("Args", (), {"pull": pull, "sync": sync, "dir": dir})()
|
||||
return asyncio.run(main_async(args))
|
||||
raise typer.Exit(asyncio.run(main_async(args)))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(typer.run(main))
|
||||
typer.run(main)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue