Skip to content

document: PDFダウンロードサブコマンドを追加#18

Merged
buty4649 merged 1 commit intomainfrom
feature/document-download
Apr 17, 2026
Merged

document: PDFダウンロードサブコマンドを追加#18
buty4649 merged 1 commit intomainfrom
feature/document-download

Conversation

@buty4649
Copy link
Copy Markdown
Contributor

Summary

  • xp document download <docid> を追加し、GET /api/v1/documents/{docid}/pdf から PDF を取得できるようにする
  • 出力先は -o FILE / -o DIR/ / -o -(stdout)をサポート。省略時は Content-Disposition のファイル名でカレントに保存
  • Claude Code 用プロジェクト設定 (.claude/CLAUDE.md) と .gitignore の更新を同梱

Test plan

  • go test ./...
  • xp document download <docid> で PDF がカレントに保存されること
  • xp document download <docid> -o out.pdf で任意パスに保存されること
  • xp document download <docid> -o - で stdout に書き出せること
  • xp schema document.download でスキーマが出力されること

🤖 Generated with Claude Code

GET /api/v1/documents/{docid}/pdf を `xp document download` として実装し、
併せて Claude Code 用のプロジェクト設定 (.claude/CLAUDE.md) と .gitignore
の更新を行う。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@buty4649 buty4649 self-assigned this Apr 17, 2026
@buty4649 buty4649 merged commit 1745eaf into main Apr 17, 2026
2 checks passed
@buty4649 buty4649 deleted the feature/document-download branch April 17, 2026 06:50
@pepabo-pr-maker pepabo-pr-maker bot mentioned this pull request Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant