Skip to content

document: ブラウザで書類を開くopenサブコマンドを追加#21

Merged
buty4649 merged 1 commit into
mainfrom
worktree-document-open
Apr 17, 2026
Merged

document: ブラウザで書類を開くopenサブコマンドを追加#21
buty4649 merged 1 commit into
mainfrom
worktree-document-open

Conversation

@buty4649
Copy link
Copy Markdown
Contributor

Summary

  • xp document open <docid> サブコマンドを追加し、既定のブラウザで書類の表示ページを開けるようにしました
  • URL は設定済みのサブドメインから組み立てるため、API リクエストは発生しません(サブドメイン未設定の場合はエラー)
  • --no-browser (-n) でブラウザを起動せず URL のみを出力します(リモート/WSL 環境向け)

Test plan

  • go build ./... 成功
  • go test ./... 成功(docID バリデーションと --no-browser の URL 出力テストを追加)
  • golangci-lint run ./... 0 issues
  • xp document open --help / xp document open 266248 --no-browser の出力を目視確認

🤖 Generated with Claude Code

@buty4649 buty4649 self-assigned this Apr 17, 2026
既定のブラウザで書類の表示ページを開く `xp document open <docid>`
を追加。--no-browser (-n) で URL のみを出力する。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@buty4649 buty4649 force-pushed the worktree-document-open branch from 25aede6 to e711609 Compare April 17, 2026 07:17
@buty4649 buty4649 merged commit c7b727a into main Apr 17, 2026
2 checks passed
@buty4649 buty4649 deleted the worktree-document-open branch April 17, 2026 07:18
@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