MCPcopy Create free account
hub / github.com/fastapi/fastapi / fix_all

Function fix_all

scripts/translation_fixer.py:103–113  ·  view source on GitHub ↗
(ctx: typer.Context, language: str)

Source from the content-addressed store, hash-verified

101
102@cli.command()
103def fix_all(ctx: typer.Context, language: str):
104 docs = get_all_paths(language)
105
106 all_good = True
107 for page in docs:
108 doc_path = Path("docs") / language / "docs" / page
109 res = process_one_page(doc_path)
110 all_good = all_good and res
111
112 if not all_good:
113 raise typer.Exit(code=1)
114
115
116@cli.command()

Callers

nothing calls this directly

Calls 3

get_all_pathsFunction · 0.85
process_one_pageFunction · 0.85
PathClass · 0.50

Tested by

no test coverage detected