Export an Obsidian-friendly monthly report and topic index.
(
user_id: str = typer.Option(..., "--user-id", "-u", help="PaperFlow user ID."),
month: Optional[str] = typer.Option(None, "--month", help="Month to export in YYYY-MM format."),
output_dir: Optional[Path] = typer.Option(None, "--output-dir", help="Monthly report output directory."),
topic_index_dir: Optional[Path] = typer.Option(None, "--topic-index-dir", help="Topic Index output directory."),
no_topic_index: bool = typer.Option(False, "--no-topic-index", help="Only write the monthly report."),
json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."),
)
| 361 | if all_users: |
| 362 | args.append("--all") |
| 363 | if dry_run: |
| 364 | args.append("--dry-run") |
| 365 | if json_output: |
| 366 | args.append("--json") |
| 367 | raise typer.Exit(code=_run_wiki(*args)) |
| 368 | |
| 369 | |
| 370 | @wiki_app.command("monthly") |
| 371 | def wiki_monthly( |
| 372 | user_id: str = typer.Option(..., "--user-id", "-u", help="PaperFlow user ID."), |
| 373 | month: Optional[str] = typer.Option(None, "--month", help="Month to export in YYYY-MM format."), |
| 374 | output_dir: Optional[Path] = typer.Option(None, "--output-dir", help="Monthly report output directory."), |
| 375 | topic_index_dir: Optional[Path] = typer.Option(None, "--topic-index-dir", help="Topic Index output directory."), |
| 376 | no_topic_index: bool = typer.Option(False, "--no-topic-index", help="Only write the monthly report."), |
| 377 | json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."), |
| 378 | ) -> None: |
| 379 | """Export an Obsidian-friendly monthly report and topic index.""" |
| 380 | args = ["monthly", "--user-id", user_id] |
| 381 | if month: |
| 382 | args.extend(["--month", month]) |
| 383 | if output_dir: |
| 384 | args.extend(["--output-dir", str(output_dir)]) |
| 385 | if topic_index_dir: |
| 386 | args.extend(["--topic-index-dir", str(topic_index_dir)]) |
nothing calls this directly
no test coverage detected