Nicolas Williams
da09544bb0
Remove accidentally introduced use of fopen "e"
2013-06-17 17:27:25 -05:00
Nicolas Williams
fe03bea191
Remove last remnant of main.h
2013-06-16 08:06:52 -05:00
Nicolas Williams
0ed6347d47
Allow --run-tests to take a file argument
2013-06-15 17:37:15 -05:00
Nicolas Williams
3f86e97f70
Fixup API to get closer to a libjq
2013-06-15 17:37:15 -05:00
Nicolas Williams
bbf4e05fde
Move slurp_file() into library as jv_load_file()
...
Needed as part of creating a libjq.
2013-06-15 00:08:59 -05:00
Nicolas Williams
03598bb5d6
Add --argfile variant of --arg (issue #117 )
...
This is useful when one has a database (in JSON form) to query using jq
input data.
% echo '{"a":1, "c":5}' > db.json
% echo '"c"'|./jq --argfile f /tmp/a '$f[.]'
5
% echo '"a"'|./jq --argfile f /tmp/a '$f[.]'
1
% echo '"b"'|./jq --argfile f /tmp/a '$f[.]'
null
%
2013-05-23 13:52:06 -05:00
Nicolas Williams
fb3c124af1
Rename complex to nontrivial for safety ( #113 )
2013-05-07 18:46:13 -05:00
Nicolas Williams
65deaaacf5
Fix #111 : exit(1) when inputs are not valid JSON
2013-05-06 12:36:53 -05:00
Nicolas Williams
a136c3b7c9
Build and install libjq
2013-04-28 20:12:49 -05:00
Nicolas Williams
312ab754a2
Remove unnecessary #includes
2013-04-28 20:12:15 -05:00
Nicolas Williams
87e9c64003
Remove globals/make jq_init/next/teardown() an API
2013-04-28 18:46:21 -05:00