Conversation
--rows / --offset フラグを撤廃し、rows=1000 で offset を自動インクリメン トしてマスタデータを全件取得するように変更。 - JSON: master.total_count を終端判定に使用し、マージ済みレスポンスを出力 - CSV: 2 ページ目以降は title=false で取得してヘッダを含めず連結、空レス ポンスで終了 - 既定出力を stdout に統一 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
数値指定 (0/1) は意味がすぐに分からないため、simple (簡易マスタ) / user (ユーザ固有マスタ) の文字列値を受け取るように変更。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
xp system master dataから--rows/--offsetフラグを撤廃し、rows=1000でoffsetを自動インクリメントしてマスタデータを全件取得するように変更master.total_countを終端判定に使用し、マージ済みのレスポンスを返すtitle=falseで取得してヘッダを含めず連結、空レスポンスで終了Test plan
go build ./.../go vet ./.../go test ./...が通ることを確認--type 1) を JSON 取得、master.total_countとmaster.dataの件数が一致する--type 1) を CSV 取得、ヘッダ 1 行 + データ行の形式で出力される--output未指定で stdout に出力されること、--output FILE指定で保存されること🤖 Generated with Claude Code