(language: str)
| 300 | |
| 301 | @app.command() |
| 302 | def list_removable(language: str) -> list[Path]: |
| 303 | removable_paths: list[Path] = [] |
| 304 | lang_paths = Path(f"docs/{language}").rglob("*.md") |
| 305 | for path in lang_paths: |
| 306 | en_path = generate_en_path(lang=language, path=path) |
| 307 | if not en_path.exists(): |
| 308 | removable_paths.append(path) |
| 309 | print(removable_paths) |
| 310 | return removable_paths |
| 311 | |
| 312 | |
| 313 | @app.command() |
no test coverage detected