Commit Graph

708 Commits

Author SHA1 Message Date
Mike Farah
e3ccd05a00 wip - rabbit hole :/ 2023-05-02 15:07:04 +10:00
Mike Farah
42843763ca wip - rabbit hole :/ 2023-05-02 14:07:59 +10:00
Mike Farah
cd50b35787 getting closer 2023-04-17 17:23:48 +10:00
Mike Farah
ee8cc90307 getting closer 2023-04-17 16:20:00 +10:00
Mike Farah
c525fa21c4 wip 2023-04-15 15:54:44 +10:00
Mike Farah
ade4819ea1 aliases 2023-04-15 15:24:40 +10:00
Mike Farah
648a08ef89 aliases 2023-04-15 15:07:23 +10:00
Mike Farah
49acb79ff1 aliases 2023-04-15 14:48:35 +10:00
Mike Farah
4ef84278a3 yaml aliases! 2023-04-15 14:36:24 +10:00
Mike Farah
4eca302efc yaml includes comments 2023-04-15 14:10:12 +10:00
Mike Farah
c38841ce20 wip 2023-04-13 15:40:41 +10:00
Mike Farah
2de69a19f5 wip 2023-04-13 14:53:14 +10:00
Mike Farah
27fa4e10b8 wip 2023-04-13 14:44:39 +10:00
Mike Farah
08c93f0f1f wip 2023-04-13 14:34:34 +10:00
Mike Farah
1421a5a879 wip 2023-04-12 19:04:21 +10:00
Mike Farah
eb7844dd1d wip 2023-04-11 15:33:32 +10:00
Mike Farah
b4cdcfb32e wip 2023-04-11 12:39:22 +10:00
Mike Farah
b74edd43da Merge branch 'master' into generic_ast 2023-04-11 12:10:29 +10:00
Mike Farah
385921a3e2 Fixed passing of readonly context in pipe 2023-04-11 12:04:04 +10:00
Mike Farah
fe8f46d475 wip 2023-04-10 14:13:28 +10:00
Mike Farah
4c6c653d25 wip 2023-04-09 11:14:51 +10:00
Mike Farah
4696d11bbc wip 2023-04-08 21:42:46 +10:00
Mike Farah
e4dd94248b wip 2023-04-08 21:27:47 +10:00
Mike Farah
6e3f1d959e wip 2023-04-08 20:17:13 +10:00
Mike Farah
66ab916c6b wip 2023-04-08 19:56:35 +10:00
Mike Farah
52b364ec52 wip 2023-04-03 22:25:37 +10:00
Mike Farah
54f5c9ee2f wip 2023-04-03 17:29:33 +10:00
Mike Farah
8fef31b417 wip 2023-04-03 17:27:41 +10:00
Mike Farah
6a891e5239 wip 2023-04-03 16:16:07 +10:00
Mike Farah
eba075294a Added scalar output for TOML (#1617) 2023-04-03 15:40:06 +10:00
Mike Farah
a389bb64b8 Fixed bug when splatting empty array #1613 2023-03-31 16:24:23 +11:00
Mike Farah
496035c75a toml docs 2023-03-31 10:24:12 +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
8d516ce535 Handle scalars in csv, xml files 2023-03-27 13:54:24 +11:00
Mike Farah
1b0a62d08d Handle scalars in property files 2023-03-27 13:51:08 +11:00
Mike Farah
7103b78d38
Draft: Toml (#1439)
* toml wip

* wip

* Fixed auto parsing toml

* Added build flag not to include toml

* Parse toml docs and tests

* minor updates
2023-03-26 10:59:15 +11:00
Mike Farah
95aafdd8d5 Fixed modulo docs 2023-03-18 14:53:36 +11:00
Mike Farah
fdce8fce13 Added docs 2023-03-18 14:51:31 +11:00
Mike Farah
dccba10997 added another base64 test 2023-03-18 14:33:48 +11:00
TJ Miller
69d3e3f3f8
Add support for decoding base64 strings without padding (#1604) 2023-03-18 14:30:35 +11:00
Mike Farah
ac8ffa287e doc gen 2023-03-16 13:41:10 +11:00
Abel Sen
fa6fac1a76
Minor typos (#1595)
* Remove extra backtick

* Reword explanation of update

* Reword explanation of relative update

* Change "remaple" to "remain"

* Change "clovver" to "clobber"

* Reword explanation of update for comment operators

* Reword explanation of relative update for comment operators

* Change "array" to "expression"

* Change "the golangs" to "Golang's"

* Change "golangs" to "Golang's"

* Change "can durations" to "can add durations"

* Change "array scalars" to "arrays"

* Change "beit" to "be it"

* Fix typo in `eval` tip

* Fix typo in header for `has` operation

* Add space before pipe in `line` operator example

* Fix typos in explanation of deep array merges

* Change "is now used" to "is now used."

* Change "object," to "object."

* Changes "indexes" to "indices"

* Remove extraneous copied text from `..` article

* Reword explanation of `...` operator

* Change "your are" to "you are"

* Add link to `string` operator docs in `select` article

* Change "is a" to "parameter specifies" in `string` operators article

* Change "new line" to "newline"

* Change "golang regex" to "Golang's regex"

* Change "golang" to "Golang"

* Add period

* Remove comma in `subtract` article

* Remove duplicate number subtraction example

* Remove comma in `traverse` operator article

* Clarify use of brackets when `read`ing with special characters
2023-03-16 13:39:36 +11:00
TJ Miller
a466821e8f
Added divide and modulo operators (#1593)
* Added divide operator (#49)

* Tidy up divide operator logic

* Added modulo operator

* Fix divide test typo

* Add divide by zero test

* Handle int modulo by 0 and add tests

* Tidy up divide/modulo operator node creation

* Fix linter errors
2023-03-15 20:14:23 +11:00
Mike Farah
360a47fddc Fixed npe in log #1596 2023-03-15 13:57:47 +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
Robert Brennan
9539877ff6
Add filter operation (#1588)
* add filter operation

* add tests

* add tests

* revert debug

* simplify filter

* fix tests

* remove logs
2023-03-09 10:30:47 +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
2195df9e7a Fixed xml encoding of ProcInst #1563, improved XML comment handling 2023-03-02 10:57:54 +11:00
Mike Farah
3f1f66a8ee Fixed merged anchor reference problem #1482 2023-03-01 13:45:35 +11:00
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