File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ func main() {
3737 Name : "unquoted, u" ,
3838 Usage : "If the final result is a string, it will be printed without quotes." ,
3939 },
40- cli.BoolFlag {
41- Name : "stream, s" ,
42- Usage : "Parse JSON elements until the input stream is exhausted (rather than just the first)." ,
43- },
4440 cli.BoolFlag {
4541 Name : "ast" ,
4642 Usage : "Only print the AST of the parsed expression. Do not rely on this output, only useful for debugging purposes." ,
@@ -135,9 +131,6 @@ func runMain(c *cli.Context) int {
135131 os .Stdout .Write (toJSON )
136132 }
137133 os .Stdout .WriteString ("\n " )
138- if ! c .Bool ("stream" ) {
139- break
140- }
141134 }
142135 return 0
143136}
Original file line number Diff line number Diff line change 2020}
2121
2222@test " Processes subsequent data in stream mode" {
23- output=$( echo ' {"foo": "bar"}{"foo": "x"}' | ./jpp -s foo)
23+ output=$( echo ' {"foo": "bar"}{"foo": "x"}' | ./jpp foo)
2424 echo " $output "
2525 [ " $output " == $' \"bar\"\n \"x\"' ]
2626}
You can’t perform that action at this time.
0 commit comments