INNER CODE UNIT · Python
docs_schema
mtkennerly/ludusavi · tasks.py:136
def docs_schema(ctx):
docs = Path(__file__).parent / "docs" / "schema"
if not docs.exists():
docs.mkdir(parents=True)
commands = [
"api-input",
"api-output",
"config",
"general-output",
]
for command in commands:
doc = docs / f"{command}.yaml"
print(f"schema: {command}")
output = ctx.run(f"cargo run -- schema --format yaml {command}", hide=True)
with doc.open("w") as f: