mirror of https://github.com/tiangolo/fastapi.git
👷 Fix Typer command for CI LLM translations (#14530)
This commit is contained in:
parent
f9397e93b5
commit
5da1cb0792
|
|
@ -914,7 +914,7 @@ def list_all_removable() -> list[Path]:
|
||||||
|
|
||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
def remove_removable(language: str) -> None:
|
def remove_removable(language: Annotated[str, typer.Option(envvar="LANGUAGE")]) -> None:
|
||||||
removable_paths = list_removable(language)
|
removable_paths = list_removable(language)
|
||||||
for path in removable_paths:
|
for path in removable_paths:
|
||||||
path.unlink()
|
path.unlink()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue