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."),
)
| 252 | raise typer.Exit(code=_run_python(script, *args)) |
| 253 | |
| 254 | |
| 255 | @wiki_app.command("init") |
| 256 | def 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") |
| 262 | def 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)] |
nothing calls this directly
no test coverage detected