Skip to content

Get query command APP-7346#3

Merged
ivpusic merged 1 commit into
create_queryfrom
get_query
Mar 3, 2026
Merged

Get query command APP-7346#3
ivpusic merged 1 commit into
create_queryfrom
get_query

Conversation

@ivpusic
Copy link
Copy Markdown
Member

@ivpusic ivpusic commented Mar 2, 2026

DUNE_API_KEY=<api-key> dune query get 6765899

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 2, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Member Author

ivpusic commented Mar 2, 2026

@ivpusic ivpusic changed the title simplified Get query command APP-7346 Mar 3, 2026
@linear
Copy link
Copy Markdown

linear Bot commented Mar 3, 2026

APP-7346 Step 5: `dune query get`

cmd/query/get.go — positional arg: query ID (required, integer). Flag: -o. Calls api.GetQuery().

Output: text: key-value with SQL block / json: full response.

Acceptance criteria:

  • dune query get 4125432 displays metadata + SQL
  • Missing/non-integer ID errors
  • 404 prints clear error
  • -o json outputs full response

Tests:

  • Valid ID renders text output (mock API)
  • JSON output matches response
  • Missing argument errors
  • Non-integer argument errors
  • 404 handled

@ivpusic ivpusic marked this pull request as ready for review March 3, 2026 08:41
@ivpusic ivpusic requested a review from va3093 March 3, 2026 08:42
@cursor
Copy link
Copy Markdown

cursor Bot commented Mar 3, 2026

PR Summary

Cursor Bugbot is generating a summary for commit 1c9ba05. Configure here.

@ivpusic ivpusic merged commit 1be3b45 into create_query Mar 3, 2026
2 checks passed
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.

2 participants