File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 24
24
(println summary))
25
25
26
26
(defn execute [jq-filter files _]
27
- (let [jq-processor (jq/flexible -processor jq-filter { :output :json-node } )]
27
+ (let [jq-processor (jq/stream -processor jq-filter)]
28
28
(if (seq files)
29
29
(doseq [f files
30
- item (jq-processor (slurp f))]
30
+ item (jq-processor (jq/string->json-node ( slurp f) ))]
31
31
(println (jq/json-node->string item)))
32
32
(when (.ready ^Reader *in*)
33
33
(doseq [^String line (line-seq (BufferedReader. *in*))
34
- item (jq-processor line)]
34
+ item (jq-processor ( jq/string->json-node line) )]
35
35
(println (jq/json-node->string item)))))))
36
36
37
37
(defn -main [& args]
Original file line number Diff line number Diff line change 8
8
9
9
; required in common use cases, so moving out of impl space
10
10
(def json-node->string impl /json-node->string )
11
+ (def string->json-node impl /string->json-node )
11
12
12
13
; jq docs http://manpages.ubuntu.com/manpages/hirsute/man1/jq.1.html
13
14
(defn execute
You can’t perform that action at this time.
0 commit comments