Mike Farah
887b4a560f
Fixed linting
2024-11-16 12:04:43 +11:00
Mike Farah
95e7b35f74
Fixed spelling of coloured
2024-11-16 11:54:58 +11:00
Vladimir Varankin
f071a25fa9
cmd: force no color output when NO_COLOR env presents
2024-11-16 11:54:19 +11:00
Valentin Lab
5fd2890d1b
Add `--nul-output|-0
` flag to separate element with NUL character ( #1550 )
...
This is to ensure solid parsing of complex data (with any binary
content except NUL chars) by separating the `yq` root collection
member's output with NUL char. As a safe-guard, an error will be cast
if trying to use NUL character with content that contains itself NUL
characters inside.
2023-03-29 09:51:55 +11:00
Mike Farah
08a6cb65fe
Auto output format ( #1599 )
...
* Use file extension to auto detect output format!
* Use file extension to auto detect output format!
* formatting
2023-03-15 13:22:58 +11:00
ryenus
d30941b575
Detect input format based on file name extension ( #1582 )
...
* detect inputFormat from filename
* refactor and extract func InputFormatFromFilename
* detect inputFormat only when file is provided
* add test for automatic input format detection
2023-03-09 10:17:19 +11:00
Mike Farah
cad809515c
Refactoring
2022-11-10 22:07:53 +11:00
Mike Farah
1d35134310
Unwrap scalar now works for JSON encoding when explicitly set #1409
2022-11-10 19:21:18 +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
6d6b693fb3
Added XML processing instructions and directive support ( #1396 )
2022-10-24 10:09:42 +11:00
Mike Farah
2bc7dcfcca
Handle xml namespaces by default
2022-06-15 17:12:57 -07:00
rndmit
b9309a42a4
XML decoder additions ( #1239 )
...
* Add xml-keep-namespace and xml-raw-token features
* Add tests
* Change flags usage strings
* Append docs
2022-06-15 09:40:31 +10:00
Mike Farah
55c5497fab
Can specify a split expression file #1194
2022-04-29 11:08:41 +10:00
Mike Farah
bbeae229ca
Disable strict XML parsing by default #1155
2022-03-28 14:05:10 +11: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
df32baedf1
Added XML decoder ( #1044 )
2021-12-21 15:02:07 +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
8c1a96d121
Properties encoder wip
2021-07-25 18:08:33 +10:00
Mike Farah
bbebebe30c
Fixed for most cases, except strip comments
2021-07-20 09:18:40 +10:00
Mike Farah
555ad0762c
Added front-matter handler
2021-07-18 12:28:46 +10:00
Mike Farah
0328cfd619
Added prettyPrint flag
2020-12-28 11:40:41 +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
8de10e550d
wip - write in place
2020-11-29 20:25:47 +11:00
Mike Farah
a57944d123
Fixed printer
2020-11-16 12:09:57 +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
2edf64182b
refining
2020-11-06 14:37:01 +11:00
Mike Farah
b1f139c965
refactored
2020-11-04 10:48:43 +11:00
Mike Farah
85d059340b
first cli
2020-10-27 16:45:16 +11:00
Mike Farah
d19e9f6917
read command
2020-10-13 12:51:37 +11:00
Mike Farah
fea8510061
Added comments merge strategy
2020-07-17 15:51:03 +10:00
Mike Farah
d66a709213
refactored array merge flags into a strategy
2020-07-17 13:26:20 +10:00
Mike Farah
2fc39b3865
Can overwrite arrays when merging
2020-07-17 13:07:32 +10:00
Mike Farah
1405584892
New,Update now support anchors and aliases
2020-06-11 13:57:13 +10:00
Mike Farah
d473c39a44
Added exit flag
2020-06-10 16:55:20 +10:00
Mike Farah
06d8715cbe
Added customStyle flag, split command tests
2020-04-17 11:03:43 +10:00
Mike Farah
2db69c91c9
Added strip comments functionality
2020-04-14 14:48:45 +10:00
Mike Farah
dfdbbbb24a
Added unwrap flag
2020-04-14 13:48:25 +10:00
Mike Farah
8e6ceba2ac
Array length and collect
2020-02-28 14:03:40 +11:00
Mike Farah
10029420a5
wip
2020-02-28 14:03:40 +11:00
Risent Veber
090432d241
add colorization
2020-02-28 10:42:19 +11:00
Mike Farah
5cc01e43bc
Can supply value for write from file
2020-02-08 14:04:54 +11:00
Mike Farah
dc13fa99f7
wip: explode anchors
2020-02-05 14:10:59 +11:00
Mike Farah
179049a535
Always allow empty
2020-02-04 14:42:08 +11:00
Mike Farah
6840ea8c78
can set indent levels
2020-02-03 16:56:01 +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