MCPcopy Index your code
hub / github.com/CodeGraphContext/CodeGraphContext / stats

Function stats

src/codegraphcontext/cli/main.py:1084–1097  ·  view source on GitHub ↗

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")
)

Source from the content-addressed store, hash-verified

1082
1083@app.command()
1084def 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()
1100def delete(

Callers

nothing calls this directly

Calls 3

_load_credentialsFunction · 0.85
stats_helperFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected