Mike Farah
de3bfaef60
Merge branch 'fix-merge-with-dots' of git://github.com/coryrc/yq into coryrc-fix-merge-with-dots
2020-02-07 09:09:52 +11:00
Cory Cross
ea9df0eede
Fix path generation when merging file has period in key
...
The program generates a path for every leaf node in the
file-to-be-merged. It does not escape them if they contain a dot, as
the path-expressions document mentions is necessary.
Add in a test for this condition. Verified it fails without the fix.
2020-02-04 22:37:00 -08:00
Mike Farah
6840ea8c78
can set indent levels
2020-02-03 16:56:01 +11:00
Mike Farah
70b88fa778
Pretty print everything test
2020-02-03 16:40:17 +11:00
Mike Farah
bfc1a621c4
Pretty print everything
2020-02-03 16:37:53 +11:00
Mike Farah
166f866f28
Pretty print json
2020-02-03 16:31:03 +11:00
Mike Farah
14ac791eaf
Fixed compare output, added tests
2020-02-03 15:35:00 +11:00
Mike Farah
25293a6894
Check write errors
2020-02-03 14:28:38 +11:00
Mike Farah
d828b214cc
More powerful compare
2020-02-03 14:15:12 +11:00
Mike Farah
9e47685271
Compare first cut
2020-02-03 13:59:16 +11:00
Mike Farah
699fce9da4
Added default value flag - for printing out a value when reading and there are no matches
2020-02-03 10:13:48 +11:00
Mike Farah
f52de57652
Don't fail when reading an empty file
2020-02-03 09:15:16 +11:00
Mike Farah
b7554e6e76
Pretty print disclaimer
2020-01-31 16:37:24 +11:00
Mike Farah
ec25511f1b
Pretty print
2020-01-31 16:35:01 +11:00
Mike Farah
d1c1ab0a75
Added validate command
2020-01-30 16:34:43 +11:00
Mike Farah
6ec8386f9e
Fixed bad yaml handling
2020-01-30 16:32:28 +11:00
Mike Farah
4dbe3636c2
Splat array is now the fallback instead of parsing int
2020-01-30 15:11:47 +11:00
Mike Farah
44f36833cf
Fixed delete array pattern matching
2020-01-30 14:55:58 +11:00
Mike Farah
720cc8f798
Update cli docs
2020-01-30 09:58:21 +11:00
Mike Farah
1a4d8158ba
Removed custom value parsing logic
2020-01-20 08:42:08 +11:00
Ryan SIU
b7148adf20
#323 Fix the unit test
2020-01-15 14:02:48 +11:00
Ryan SIU
64d38e9f03
#323 Refactor the cobra command with standard structure
2020-01-15 14:02:48 +11:00