mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
Args: Expose api-servers to subcommands
This is required for the export-openapi action. Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
This commit is contained in:
@@ -101,6 +101,9 @@ def add_subcommands(parser: argparse.ArgumentParser):
|
||||
"--export-path",
|
||||
help="Path to export the generated OpenAPI JSON (default: openapi.json)",
|
||||
)
|
||||
openapi_export_parser.add_argument(
|
||||
"--api-servers", nargs="+", help="Sets API servers to run when exporting"
|
||||
)
|
||||
|
||||
# Calls config export action
|
||||
config_export_parser = actions_subparsers.add_parser(
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import asyncio
|
||||
from typing import Optional
|
||||
import uvicorn
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from loguru import logger
|
||||
from typing import Optional
|
||||
|
||||
from common.logger import UVICORN_LOG_CONFIG
|
||||
from common.networking import get_global_depends
|
||||
|
||||
Reference in New Issue
Block a user