-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assume --format json
when --jq
is specified
#9097
Comments
Hey @major0 thanks for opening this issue. Totally understand what you're saying here. History LessonSo most commands that support the
We can see that the
As this is GQL specific behaviour, for commands that hit REST endpoints, the filtering of fields is applied after the response has come back. In the case of In any case, with this history you can probably see why the typical case of But the project command doesn't support filtering even at the command levelSo yeh, as mentioned |
@williammartin agree with everything you wrote! In terms of inferring
|
My first instinct is that
It also could be worth general casing it. However, I suspect there are cases in which |
Describe the feature or problem you’d like to solve
Various commands support specifying an output format via
--format json
, which is very useful when one wants to process that output via another command on the CLI, or capturing the output into ajson
file.Further more, these same commands support specifying a builtin
jq
query via the--jq
argument.What is a little curious is that the users is forced to specify
--format json
if passing a--jq
argument. It seems to get into the realm of being a little redundant.Proposed solution
Considering
--jq
requires--format json
, why not assume that output format when--jq
is passed?The text was updated successfully, but these errors were encountered: