MCPcopy Index your code
hub / github.com/fastapi/fastapi / add_missing

Function add_missing

scripts/translate.py:393–402  ·  view source on GitHub ↗
(
    language: Annotated[str, typer.Option(envvar="LANGUAGE")],
    max: Annotated[int, typer.Option(envvar="MAX")] = 10,
)

Source from the content-addressed store, hash-verified

391
392@app.command()
393def add_missing(
394 language: Annotated[str, typer.Option(envvar="LANGUAGE")],
395 max: Annotated[int, typer.Option(envvar="MAX")] = 10,
396) -> None:
397 missing_paths = list_missing(language)
398 for path in missing_paths[:max]:
399 print(f"Adding lang: {language} path: {path}")
400 translate_page(language=language, en_path=path)
401 print(f"Done adding: {path}")
402 print("Done adding all missing paths")
403
404
405@app.command()

Callers 1

update_and_addFunction · 0.85

Calls 2

list_missingFunction · 0.85
translate_pageFunction · 0.85

Tested by

no test coverage detected