Fix --handle flag on get commands, enrich product list/get output#30
Merged
Fix --handle flag on get commands, enrich product list/get output#30
Conversation
02fea36 to
8d3945f
Compare
…list/get output
- All get commands (product, page, collection, menu) now produce a clear
error when --handle is passed without a positional argument, instead of
silently ignoring the flag.
- Extract rejectHandleFlag() helper to avoid duplicating the check.
- product list: add Category column and Image (Yes/No) indicator.
GraphQL query now fetches category { id name } and featuredImage { url }.
- product get: add Category and Metafields sections to table and JSON output.
GraphQL query now fetches category { id name } and metafields(first: 25).
- Add friction log docs (FRICTION.md, CLI_FRICTION.md) and architecture
spec (docs/gql-first-refactor.md) for future reference.
Fixes SAU-234
8d3945f to
120193f
Compare
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.
Changes
Bug fix: --handle flag on get commands (SAU-234)
All
getcommands (product,page,collection,menu) now produce a clear error when--handleis passed without a positional argument, instead of silently ignoring the flag.Before:
shopq page get --handle about-us→ generic "Usage" errorAfter:
shopq page get --handle about-us→ "--handle is not a flag for this command. Pass the identifier as a positional argument: shopq page get "Extracted shared
rejectHandleFlag()helper to avoid duplicating the check across 4 commands.Enrich product list output
category { id name }andfeaturedImage { url }Enrich product get output
category { id name }andmetafields(first: 25)Docs
Tests
321 tests pass (8 new tests added for the above changes).