Anders Björklund
cf8cfbd865
Allow build without json and xml support ( #1556 )
...
* Refactor ordered_map into separate files
Separate json and xml, from the regular yaml.
Makes it possible to compile, without those...
* Refactor encoder and decoder creation
Use more consistent parameters vs globals
Return errors instead of calling panic()
* Allow build without json and xml support
2023-03-01 13:19:06 +11:00
Mike Farah
880397d549
Refactored decoder responsibilities ( #1402 )
...
- improved comment handling
- yaml decoder now responsible for leading content work around
2022-10-28 14:16:46 +11:00
Mike Farah
3ad5355777
Fixes bug when using inplace with no expression and multiple files #1193
2022-04-27 09:08:50 +10:00
Mike Farah
33a29817d7
Can load expressions from file #1120
2022-03-01 11:50:09 +11:00
Mike Farah
2891c6948d
Added expression argument to forcibly set expression if required
2022-02-07 09:27:52 +11:00
Mike Farah
703418d0c4
Automatically add "-" when piping and its missing
2022-02-07 09:09:11 +11:00
Mike Farah
75960c6484
Allow multiple files with no expression
2022-02-07 08:23:53 +11:00
Mike Farah
dedd1ca892
Fixing github build
2022-01-27 15:54:26 +11:00
Mike Farah
3ba728d40c
Working around github strangeness
2022-01-27 13:54:29 +11:00
Mike Farah
8761920f58
Debug github build
2022-01-27 13:24:05 +11:00
Mike Farah
4ec533bc1b
No longer have to specify eval!
2022-01-27 12:07:41 +11:00
Mike Farah
fc276ff450
Smarter behaviour when piping data in with one argument
2022-01-27 10:18:46 +11:00
Mike Farah
71242b0c8e
Fix Seg Fault on bad split expression input #1086
2022-01-27 09:29:41 +11:00
Mike Farah
2526b03d67
Added JSON conversion tests and doc generation
2022-01-21 20:26:19 +11:00
Mike Farah
ec8ef312ef
Added XML encoding/decoding ( #1067 )
...
* Added XML encoding/decoding
* Minor fixes
* Improve yq doc
* Lint
2022-01-15 11:57:59 +11:00
Mike Farah
606ef91cc6
Better fix #1062 (return error instead of panic)
2022-01-14 15:40:24 +11:00
Mike Farah
df32baedf1
Added XML decoder ( #1044 )
2021-12-21 15:02:07 +11:00
Mike Farah
2b3d0552a6
Refactored command logic
2021-10-30 13:04:05 +11:00
Mike Farah
0b2688c0f1
Split printer
2021-10-30 10:04:41 +11:00
Mike Farah
0064b68ed9
Revert "Removed leadingContentPreProcessing flag - header preprocessing is stable"
...
This reverts commit 4ce9433468
.
2021-10-15 11:47:00 +11:00
Mike Farah
4ce9433468
Removed leadingContentPreProcessing flag - header preprocessing is stable
2021-10-15 08:53:00 +11:00
Mike Farah
4123669efe
Help text tweak
2021-09-20 09:57:41 +10:00
Mike Farah
43f47c4ed9
wip - pretty print 1.1 compat mode
2021-08-20 12:23:35 +10:00
Mike Farah
8c1a96d121
Properties encoder wip
2021-07-25 18:08:33 +10:00
Mike Farah
8508d3309b
More efficient front matter processor
2021-07-20 10:38:42 +10:00
Mike Farah
bbebebe30c
Fixed for most cases, except strip comments
2021-07-20 09:18:40 +10:00
Mike Farah
3a6f73e836
wip
2021-07-19 19:52:51 +10:00
Mike Farah
9c8253b582
Front matter processor seems to be working!
2021-07-18 13:17:35 +10:00
Mike Farah
555ad0762c
Added front-matter handler
2021-07-18 12:28:46 +10:00
Mike Farah
cae3d95fdc
Clean up cli help doc, add github and doc links
2021-07-09 14:58:09 +10:00
Mike Farah
2483c38eeb
Added command help about using stdin
2021-04-19 10:27:01 +10:00
Mike Farah
bd0818c481
Fixed write-inplace with no expression
2021-02-11 10:58:40 +11:00
Ben Moss
26742b2597
Fix pretty-printing
...
Fixes #716 #715
2021-02-11 10:58:40 +11:00
Mike Farah
7fa2b20b48
Error when passing files and using null-input flag
2021-02-11 10:58:40 +11:00
Mike Farah
0328cfd619
Added prettyPrint flag
2020-12-28 11:40:41 +11:00
Mike Farah
da027f69d7
updated cobra package
2020-12-01 16:16:20 +11:00
Mike Farah
08f579f4e3
Fixed create yaml
2020-12-01 14:06:49 +11:00
Mike Farah
c9229439f7
added exit status
2020-11-30 16:35:21 +11:00
Mike Farah
9bc66c80b6
Added write-inlplace flag
2020-11-30 16:05:07 +11:00
Mike Farah
fc3af441e5
Extracted out evaluators
2020-11-22 11:56:28 +11:00
Mike Farah
af39fc737d
Fixed linting
2020-11-13 14:07:11 +11:00
Mike Farah
f8a700e400
Alpha1 of v4!
2020-11-13 13:35:59 +11:00
Mike Farah
708ff02e8d
Fixed collect object for multi doc
2020-11-13 13:19:54 +11:00
Mike Farah
2edf64182b
refining
2020-11-06 14:37:01 +11:00