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

Function wiki_list

paperflow/cli.py:254–266  ·  view source on GitHub ↗

List recent wiki nodes for a user.

(
    user_id: str = typer.Option(..., "--user-id", "-u", help="PaperFlow user ID."),
    node_type: Optional[str] = typer.Option(None, "--type", help="Filter by paper, section, trajectory, or topic."),
    limit: int = typer.Option(20, "--limit", "-n", help="Maximum number of nodes to print."),
    json_output: bool = typer.Option(False, "--json", help="Print JSON instead of a text table."),
)

Source from the content-addressed store, hash-verified

252 raise typer.Exit(code=_run_python(script, *args))
253
254
255@wiki_app.command("init")
256def wiki_init() -> None:
257 """Initialize the local wiki tables and folders."""
258 raise typer.Exit(code=_run_wiki("init"))
259
260
261@wiki_app.command("list")
262def wiki_list(
263 user_id: str = typer.Option(..., "--user-id", "-u", help="PaperFlow user ID."),
264 node_type: Optional[str] = typer.Option(None, "--type", help="Filter by paper, section, trajectory, or topic."),
265 limit: int = typer.Option(20, "--limit", "-n", help="Maximum number of nodes to print."),
266 json_output: bool = typer.Option(False, "--json", help="Print JSON instead of a text table."),
267) -> None:
268 """List recent wiki nodes for a user."""
269 args = ["list", "--user-id", user_id, "--limit", str(limit)]

Callers

nothing calls this directly

Calls 1

_run_wikiFunction · 0.85

Tested by

no test coverage detected