-
Notifications
You must be signed in to change notification settings - Fork 330
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
panic with --values #117
Comments
I saw this too and was confused. For example if I'm trying to extract some disk details:
The solution is to run gron twice in a row:
I think this was probably missed because in practice you'd never use gron by itself, it's meant to be combined with grep, so you'd do something like:
This is alluded to in the comments: Lines 401 to 404 in badf401
but not in the docs and it threw me off too. Maybe it can be explained with an example, or mentioning "Print just the values of gron-format assignments"? And also it would be better not to panic at all. If the input format is wrong maybe that can become an error message explaining that the format is wrong. |
I'm probably misunderstanding the purpose of
--values
flag, but I was trying it on various JSON inputs and saw Go panics in some cases 💥 (and nothing in others).Here are pretty small reproducers (on latest master), which are weirdly sensitive to whitespace:
The text was updated successfully, but these errors were encountered: