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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user