Skip to content

query: 一覧取得・実行サブコマンドを追加#22

Merged
buty4649 merged 1 commit into
mainfrom
worktree-query-commands
Apr 17, 2026
Merged

query: 一覧取得・実行サブコマンドを追加#22
buty4649 merged 1 commit into
mainfrom
worktree-query-commands

Conversation

@buty4649
Copy link
Copy Markdown
Contributor

Summary

  • xp query list で利用可能なクエリを一覧取得 (GET /api/v1/query/)
  • xp query exec <query_code> でクエリを実行して定義と結果を取得 (GET /api/v1/query/{query_code}、既定 exec_flg=true)
  • --no-run で定義のみ、--rows / --offset で一覧クエリのページングに対応
  • xp schema query.list / xp schema query.exec のスキーマを追加

Test plan

  • go build ./...
  • go test ./...
  • golangci-lint run ./...
  • go run . query --help / go run . schema query.list の出力確認

🤖 Generated with Claude Code

- xp query list: 利用可能なクエリを一覧取得 (GET /api/v1/query/)
- xp query exec <query_code>: クエリを実行して定義と結果を取得 (GET /api/v1/query/{query_code})
- --no-run で定義のみ、--rows/--offset で一覧クエリのページング
- schema query.list / query.exec を追加

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@buty4649 buty4649 self-assigned this Apr 17, 2026
@buty4649 buty4649 enabled auto-merge (squash) April 17, 2026 07:25
@buty4649 buty4649 merged commit ee568f8 into main Apr 17, 2026
2 checks passed
@buty4649 buty4649 deleted the worktree-query-commands branch April 17, 2026 07:26
@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