Skip to content

Releases: mikefarah/yq

2.3.0

21 Mar 22:19
Compare
Choose a tag to compare
  • Adds --allow-empty flag to merge command to fix #205

Thanks @Ruenzuo !

2.2.1

06 Jan 23:48
Compare
Choose a tag to compare
  • Added Windows support for the "--inplace" command flag #199

Thanks @kyle-tightest!

2.2.0

19 Nov 23:17
Compare
Choose a tag to compare

Thanks @matfax !

2.1.2 - Fixed file permissions when writing in place

25 Oct 05:06
Compare
Choose a tag to compare

More linux binaries

14 Jul 22:45
Compare
Choose a tag to compare

Added support for PowerPC and ARM

Fixes: #164
#168

Merge arrays and read multiple documents

10 Jul 11:11
Compare
Choose a tag to compare

Resolves:

  • Ability to read multiple documents in a single file: #157
  • Feature Request: Append list items instead of overwriting: #128

Fixes writing in-place with docker

27 Jun 10:06
Compare
Choose a tag to compare

Fix for #156.

Minor fix to help text, -j --tojson no longer appear as global options as the only work for the 'read' command.

Multiple Document Support!

20 Jun 07:50
Compare
Choose a tag to compare

Finally added multiple document support!

Use the '-d' argument to specify a particular document, default to 0 (first doc) if not specified.

yq r -d1 content.yaml this.deep[0].path
yq w -d1 content.yaml this.deep[0].path newValue
yq w -d'*' content.yaml this.deep[0].path newValue

Backward breaking change
A result of this is that now only the read command supports the JSON output flag, all other commands do not (as you cannot have multiple documents in a JSON file. If you still want JSON output you'll need to pipe:

yq w -d1 content.yaml this.deep[0].path newValue | yq r -d1 -

Fixed #9

Multiple Document Support!

15 Jun 10:50
Compare
Choose a tag to compare
Pre-release

Finally added multiple document support!

Use the '-d' argument to specify a particular document, default to 0 (first doc) if not specified.

yq r -d1 content.yaml this.deep[0].path
yq w -d1 content.yaml this.deep[0].path newValue

Backward breaking change
A result of this is that now only the read command supports the JSON output flag, all other commands do not (as you cannot have multiple documents in a JSON file. If you still want JSON output you'll need to pipe:

yq w -d1 content.yaml this.deep[0].path newValue | yq r -d1 -

Currently in beta and available just in Git - will promote to brew, snap etc shortly

Fixed #9

1.15.0

07 May 10:35
Compare
Choose a tag to compare

Implemented a delete command and associated tests for deleting a node from YAML input. This behaves in a similar manner as the write command.

The following functionality is not provided, although could conceivably be added with a modicum of additional effort if there is strong opinion that they are required:

Specify the node(s) to delete using a script (as with the write command)
Deleting common elements from all members of an array (deletions from individual members are supported using a path like a.b[0].name, but deleting from all instances in one pass, e.g. a.b[*].name, is not).

Thanks @mhuxtable !