feat(cli): add bundled health app scaffold and init command

- ship OpenAPI-first health check template as package data
- add CLI to copy scaffold into new project directories
- include OpenAPI spec, routes, and bootstrap example
- enable fast startup for OpenAPI-first services
This commit is contained in:
2026-01-10 17:39:33 +05:30
parent 20f65d22e0
commit 571a11a1c7
5 changed files with 68 additions and 0 deletions

View File

@@ -54,6 +54,8 @@ dependencies = [
"pyyaml>=6.0.1",
]
[project.scripts]
openapi-first = "openapi_first.cli:main"
[project.optional-dependencies]
dev = [
@@ -81,6 +83,9 @@ Versions = "https://git.aetoskia.com/aetos/openapi-first/tags"
[tool.setuptools]
packages = { find = { include = ["openapi_first*"] } }
[tool.setuptools.package-data]
fastapi_openapi_first = ["templates/**/*"]
[tool.ruff]
line-length = 100