jzelinskie / faq

Format Agnostic jQ -- process various formats with libjq
Apache License 2.0
434 stars 14 forks source link

first example doesn't work #91

Closed silvio closed 1 year ago

silvio commented 3 years ago

The very first example doesn't work

$ echo '{"hello":{"world":"whats up"},"with":"you"}' | faq
Error: no arguments provided                                                                                                                                                          
Usage:                                                                                                                                                                                
  faq [flags] [filter string] [files...]                                                                                                                                              
[...]

It also doesn't work with [...] | faq -. I would expect the following output

$ echo '{"hello":{"world":"whats up"},"with":"you"}' | faq     
{                                                                                          
  "hello": {                                                                               
    "world": "whats up"                                                                    
  },                                                                                       
  "with": "you"                                                                            
}                                                                                          

I think the problem came in with commit 78b0985a371827f9673a0c05dfc32f0a423c35ef.

jzelinskie commented 3 years ago

Yeah, this is fixed in HEAD, but not cut into a 0.0.8 release yet. I was hoping to get a few more fixes in, but seeing as it is a bug in a fairly common usage, I should probably just cut one ASAP.