(
doc_paths: Annotated[
list[Path],
typer.Argument(help="List of paths to documents."),
],
)
| 115 | |
| 116 | @cli.command() |
| 117 | def fix_pages( |
| 118 | doc_paths: Annotated[ |
| 119 | list[Path], |
| 120 | typer.Argument(help="List of paths to documents."), |
| 121 | ], |
| 122 | ): |
| 123 | all_good = True |
| 124 | for path in doc_paths: |
| 125 | res = process_one_page(path) |
| 126 | all_good = all_good and res |
| 127 | |
| 128 | if not all_good: |
| 129 | raise typer.Exit(code=1) |
| 130 | |
| 131 | |
| 132 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected