Show indexing statistics. If a path is provided, shows stats for that specific repository. Otherwise, shows overall database statistics.
(
path: Optional[str] = typer.Argument(None, help="Path to show stats for. Omit for overall stats."),
context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use")
)
| 1082 | |
| 1083 | @app.command() |
| 1084 | def stats( |
| 1085 | path: Optional[str] = typer.Argument(None, help="Path to show stats for. Omit for overall stats."), |
| 1086 | context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use") |
| 1087 | ): |
| 1088 | """ |
| 1089 | Show indexing statistics. |
| 1090 | |
| 1091 | If a path is provided, shows stats for that specific repository. |
| 1092 | Otherwise, shows overall database statistics. |
| 1093 | """ |
| 1094 | _load_credentials() |
| 1095 | if path: |
| 1096 | path = str(Path(path).resolve()) |
| 1097 | stats_helper(path, context) |
| 1098 | |
| 1099 | @app.command() |
| 1100 | def delete( |
nothing calls this directly
no test coverage detected