(
language: Annotated[str, typer.Option(envvar="LANGUAGE")],
max: Annotated[int, typer.Option(envvar="MAX")] = 10,
)
| 404 | |
| 405 | @app.command() |
| 406 | def update_and_add( |
| 407 | language: Annotated[str, typer.Option(envvar="LANGUAGE")], |
| 408 | max: Annotated[int, typer.Option(envvar="MAX")] = 10, |
| 409 | ) -> None: |
| 410 | print(f"Updating outdated translations for {language}") |
| 411 | update_outdated(language=language, max=max) |
| 412 | print(f"Adding missing translations for {language}") |
| 413 | add_missing(language=language, max=max) |
| 414 | print(f"Done updating and adding for {language}") |
| 415 | |
| 416 | |
| 417 | @app.command() |
nothing calls this directly
no test coverage detected