Mike Farah
0bb53ec770
Fixed delete bug
2021-02-04 12:48:07 +11:00
Mike Farah
a50e154652
Added variable doc
2021-02-04 12:44:03 +11:00
Mike Farah
f91d30e46c
Fixed variable precedence
2021-02-04 12:39:04 +11:00
Mike Farah
07b053f040
Fixing op precedences
2021-02-04 12:18:54 +11:00
Mike Farah
35c97e832e
Fixing op precedences
2021-02-03 17:11:47 +11:00
Mike Farah
8a5c47906e
Added variables
2021-02-03 15:51:26 +11:00
Mike Farah
a366cacad3
Dont create entries when selecting
2021-02-03 11:56:35 +11:00
Mike Farah
7c8d3b9e70
Pass context through operators
...
Allows more sophisticated functionality
2021-02-03 11:56:35 +11:00
Mike Farah
f46fe384bd
Fixed length of null to be zero
2021-01-26 10:21:16 +11:00
Mike Farah
b2056a2056
Can add and merge append to null
2021-01-18 13:58:46 +11:00
evnp
ba59201217
Don't escape HTML chars when converting to json
...
json.Encoder and json.Marshal implicitly use HTMLEscape to convert
>, <, &, with \u003c, \u003e, \u0026. This behavior carries over
to yq, where chars will be escaped when outputting json but not when
outputting yaml.
This changeset disables this behavior via encoder.SetEscapeHTML(false).
Unfortunately there is no equivalent option for json.Marshal, so its
single usage has been replaced with an encoder (with escaping disabled).
2021-01-18 13:33:02 +11:00
Mike Farah
cfddee9101
Fixed cross-function combinatorial bug
2021-01-18 13:28:40 +11:00
Mike Farah
1941bb66a5
wip
2021-01-18 10:15:31 +11:00
Mike Farah
29af9e4c63
thoughts
2021-01-16 14:56:52 +11:00
Mike Farah
af3a9ae846
cross function fix wip
2021-01-16 14:09:49 +11:00
Mike Farah
4fc3793fcb
Fixing multiply doc
2021-01-14 20:28:57 +11:00
Mike Farah
806f906041
Added keys operator
2021-01-14 15:45:07 +11:00
Mike Farah
e8b2f6e383
Added split string operator
2021-01-14 15:05:50 +11:00
Mike Farah
e419b5a39d
Added join strings operator
2021-01-14 14:46:50 +11:00
Mike Farah
a5b6e08282
Split doc operator
2021-01-14 14:25:31 +11:00
Mike Farah
2417c0ee8f
Fixing add,multiply,alternative operator precendences
2021-01-14 11:16:04 +11:00
Mike Farah
d3b2e37b66
Fixed remove comments example
2021-01-14 09:12:14 +11:00
Mike Farah
54723c1a36
Dont use pointer for env prefs (avoid nil)
2021-01-13 17:00:53 +11:00
Mike Farah
0318c80d33
Dont use pointer for recursive prefs (avoid nil)
2021-01-13 17:00:03 +11:00
Mike Farah
8980846632
Dont use pointer for multiply prefs (avoid nil)
2021-01-13 16:59:01 +11:00
Mike Farah
0fb62d3ae1
Dont use pointer for commment prefs (avoid nil)
2021-01-13 16:56:24 +11:00
Mike Farah
85398727ad
Added merge if empty
2021-01-13 16:54:28 +11:00
Mike Farah
0bf3d781f6
Added operator level doc
2021-01-13 15:23:26 +11:00
Mike Farah
b0735d8152
Renaming pathtree to expression
2021-01-13 10:25:26 +11:00
Mike Farah
f17cbfd007
Removed global vars
2021-01-13 10:04:52 +11:00
Mike Farah
7b7ab70286
UnwrapDoc now private
2021-01-13 10:00:51 +11:00
Mike Farah
43165fa340
Moved eval function to eval interface
2021-01-13 09:35:57 +11:00
Mikhail Katychev
feda9f044d
added lib_test.go
2021-01-13 09:22:40 +11:00
Mikhail Katychev
85629af59c
added EvaluateNodes and EvaluateCandidateNodes to yqlib
2021-01-13 09:22:40 +11:00
Mike Farah
5fc26e9453
Merge now copies anchor names
2021-01-13 09:21:16 +11:00
Mike Farah
07a6fa4df5
Fixed creation of candidateNode in operators to include file metadata
2021-01-12 19:36:28 +11:00
Mike Farah
ec29ee7c14
Cleaning up exposed public api
2021-01-12 09:58:50 +11:00
Mike Farah
24538c0cc7
Fixed tag operator for top level node
2021-01-12 09:45:57 +11:00
Mike Farah
61398bfd3a
Fixed equals operator for top level node
2021-01-12 09:40:37 +11:00
Mike Farah
f7d95021c1
Fixed has operator for top level node
2021-01-12 09:30:24 +11:00
Mike Farah
6bb8b1fb77
fixing exposed functions and interfaces
2021-01-11 17:13:48 +11:00
Mike Farah
5e2c19cc86
fixing exposed functions and interfaces
2021-01-11 16:46:28 +11:00
Mike Farah
30c269a66c
Better add documentation
2021-01-11 15:52:06 +11:00
Mike Farah
70a1c60d7b
Added scalar addition
2021-01-11 15:43:50 +11:00
Mike Farah
e4d48bbc0d
Fixed collect at document level
2021-01-11 14:44:53 +11:00
Mike Farah
369ff94ad0
Better error handling will empty env
2021-01-11 14:38:53 +11:00
Mike Farah
1c7fb14631
Better recursive decent docs
2021-01-10 11:27:18 +11:00
Mike Farah
f4de5c4300
Better docIndex docs
2021-01-10 11:18:13 +11:00
Mike Farah
a72c14f06b
Better env docs
2021-01-10 11:09:59 +11:00
Mike Farah
644063646e
Env Ops!
2021-01-09 12:06:19 +11:00