85f0e30c81
fix sub ( #586 ); add gsub/3; add transpose/0.
...
Signed-off-by: William Langford <wlangfor@gmail.com>
2014-10-06 21:32:07 -04:00
1796a716ea
Restore split/1
; don't use regexp ( fix #576 )
2014-10-03 17:58:45 -05:00
07d8d5c5ef
Update docs about sort/group/min/max/unique
2014-10-03 17:58:44 -05:00
0b29b44cab
from-entries should work with EC2 ( fix #592 )
2014-10-03 17:47:13 -05:00
a0a350f468
Remove sort/1 and group/1
...
Reserve these for sorting with jq-coded comparators.
2014-10-03 17:47:13 -05:00
4a57b84db0
to_entries should not sort keys ( fix #561 )
2014-09-30 21:52:30 -05:00
f7a2af7052
Properly handle when objects cannot be folded
...
Fix #579 .
2014-09-22 20:14:46 -04:00
456bafa82f
Drop the jq version directory from search path
2014-08-30 00:58:24 -05:00
7a8e3c759e
Never close stdin; allow multiple -
arguments
2014-08-30 00:40:03 -05:00
b70bea8d34
Handle invalid inputs in argument files ( fix #562 )
2014-08-30 00:40:03 -05:00
d177944b75
Properly handle incomplete json when input is file
...
Fix #562
2014-08-28 21:52:45 -04:00
9bd55487ea
C-coded builtins should not assert ( fix #553 )
2014-08-21 00:12:29 -05:00
23e2e2eab3
Quiet warning about freopen() of stdout
2014-08-20 20:49:30 -05:00
8d2d5e37e5
Drop "any/" in module search; use 1.x-master
2014-08-20 20:48:48 -05:00
287e2c96ed
BSD sed lacks -r; fix #551
2014-08-14 03:31:25 -05:00
f8d9478517
Document module system
...
Fix #511 .
2014-08-14 03:26:28 -05:00
1ba8c2cfa6
Add module
directive, modulemeta
builtin
...
Fix #425 .
2014-08-14 03:26:26 -05:00
d654724fef
Add JV_OBJECT() macro
2014-08-14 03:21:38 -05:00
3375089013
Add JV_ARRAY() macro
2014-08-14 03:21:38 -05:00
9f13afa20f
Add jq_report_error() function; use it
...
Put a stop to fprintf(stderr, ...) where we shouldn't.
2014-08-14 03:21:35 -05:00
908c10928b
Fix #549
2014-08-11 14:58:44 -05:00
c321c3b86b
Constant fold objects
2014-08-09 20:47:03 -05:00
f87521183f
Fold constant arrays
2014-08-09 20:27:08 -05:00
8a561120c4
More constant folding: null, true, and false
...
A step towards doing constant folding for arrays and objects.
2014-08-09 19:15:50 -05:00
20ca21cb0d
Out of bounds negative array indices should raise
2014-08-09 19:15:50 -05:00
2d1a75f550
.foo[-1] = ...
trips assertion (fix #490 )
2014-08-09 13:10:41 -05:00
8cddb7c681
Allow any number of jq-coded function arguments
2014-08-09 12:42:39 -05:00
4249bbf0d5
Make nwise
private
2014-08-08 19:36:43 -05:00
8a57c27e92
Make regexp builtins and range/3 use #524 too
2014-08-08 19:31:11 -05:00
8706b6b16a
Use def f($a): ...;
syntax for builtins
2014-08-08 19:23:46 -05:00
32c08d48f3
Add def f($arg):
syntax ( fix #524 )
2014-08-08 19:16:01 -05:00
fc52e78ed4
Fix tests for #432
2014-08-08 18:17:58 -05:00
eb12f0358e
Fix docs YAML (introduced in #432 )
2014-08-08 18:01:42 -05:00
a696c6b551
regex filters ( #432 ): scan, splits, split, sub, gsub
2014-08-08 17:00:14 -05:00
0d437e25de
Better error msg for bad shell quoting ( fix #538 )
2014-08-06 17:51:53 -05:00
6744664ff4
Actually check version for bison.
...
Clean up oniguruma checks.
2014-08-06 12:26:34 -04:00
ef5bd5a6de
Merge pull request #532 from wtlangford/top-removal
...
Remove duplicate TOP insertions, drop unused defs.
2014-08-05 13:41:59 -04:00
2159f9f5e0
Document TCO a bit more
2014-08-05 01:15:33 -05:00
2518b3a34f
Fix docs (missing backquotes)
2014-08-05 01:15:33 -05:00
c3d6d5fd37
Merge pull request #523 from eproxus/patch-1
...
Add example of selecting object with keys
2014-08-05 00:50:21 -04:00
a25950a58c
Remove duplicate TOP insertions, drop unused defs.
2014-08-05 00:46:10 -04:00
f8fed0f0bc
Apply TCO to recurse/1, add recurse/2; tweak docs
...
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
2014-08-04 21:11:01 -05:00
89545ea9d0
Add example of selecting object with keys
...
It is not very straight forward how to select objects by their attributes from an array. This example provides the basic use case of how to select some objects based key values.
2014-08-01 12:13:35 +02:00
a2f99d43c3
Some builtins are unnecessarily special ( fix #521 )
2014-08-01 00:20:30 -05:00
a7878a8d1a
Correct @wtlangford's address
2014-07-30 13:19:46 -05:00
c73ad74be0
Add @wtlangford to the AUTHORS list
2014-07-30 13:02:34 -05:00
53993a9942
Add capture; document regular expression filters
...
Fix #493 .
2014-07-28 19:41:21 -05:00
e1b20b48f0
Add first
, nth
, last
( fix #510 )
2014-07-28 13:18:58 -05:00
14bc1f6526
Fixing crash when a library's dependency could not be loaded.
...
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
2014-07-27 17:51:48 -05:00
2e2538ccb8
Fold constants ( fix #504 )
2014-07-27 17:48:49 -05:00