(
language: Annotated[str, typer.Option(envvar="LANGUAGE")],
max: Annotated[int, typer.Option(envvar="MAX")] = 10,
)
| 391 | |
| 392 | @app.command() |
| 393 | def 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() |
no test coverage detected