Skip to content

🚸 ux(jq): jq should always return a list#158

Merged
jfbus merged 1 commit into
mainfrom
jqlist
Apr 20, 2026
Merged

🚸 ux(jq): jq should always return a list#158
jfbus merged 1 commit into
mainfrom
jqlist

Conversation

@jfbus
Copy link
Copy Markdown
Contributor

@jfbus jfbus commented Apr 10, 2026

Description

#142 changed --jq to return a single entry when the jq query returned a single item, making jq output format difficult to predict (sometimes a list, sometimes a single entry).

This PR reverts to the previous format: --jq always return a list, and --single needs to be used when a single entry is expected.

Type of Change

Please check the relevant option(s):

  • 🐛 Bug fix
  • ✨ New feature
  • 🧹 Code cleanup or refactor
  • 📝 Documentation update
  • 🔧 Build or CI-related change
  • 🔒 Security fix
  • Other (specify):

How Has This Been Tested?

Please describe the test strategy:

  • Manual testing
  • Unit tests
  • Integration tests
  • Not tested yet

Checklist

  • I have followed the Contributing Guidelines
  • I have added tests or explained why they are not needed
  • I have updated relevant documentation (README, examples, etc.)
  • My changes follow the Conventional Commits specification
  • My commits include appropriate Gitmoji

Additional Context

@jfbus jfbus marked this pull request as ready for review April 10, 2026 07:58
@jfbus jfbus requested a review from a team April 10, 2026 07:58
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 10, 2026

No diff in reference doc 😀

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 10, 2026

Binary size: 81.5MB => 81.5MB (change +0KB, +0.0%) 😉

@jfbus jfbus merged commit 9a7f35d into main Apr 20, 2026
8 of 9 checks passed
@jfbus jfbus deleted the jqlist branch April 20, 2026 08:52
@jfbus jfbus added the kind/feature New feature or request label May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature New feature or request

Development

Successfully merging this pull request may close these issues.

2 participants