MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / wiki_stats

Function wiki_stats

paperflow/cli.py:287–295  ·  view source on GitHub ↗

Show local wiki node, edge, and citation counts.

(
    user_id: str = typer.Option(..., "--user-id", "-u", help="PaperFlow user ID."),
    json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."),
)

Source from the content-addressed store, hash-verified

285 """Search wiki nodes for a user."""
286 args = ["search", query, "--user-id", user_id, "--limit", str(limit)]
287 if node_type:
288 args.extend(["--type", node_type])
289 if json_output:
290 args.append("--json")
291 raise typer.Exit(code=_run_wiki(*args))
292
293
294@wiki_app.command("stats")
295def wiki_stats(
296 user_id: str = typer.Option(..., "--user-id", "-u", help="PaperFlow user ID."),
297 json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."),
298) -> None:

Callers

nothing calls this directly

Calls 1

_run_wikiFunction · 0.85

Tested by

no test coverage detected