From 03f57b7034d0330d54663881def67523347dfc9c Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Sun, 20 Mar 2022 13:03:40 +1100 Subject: [PATCH] Bumping version --- cmd/version.go | 2 +- pkg/yqlib/doc/operators/env-variable-operators.md | 2 ++ pkg/yqlib/doc/operators/headers/env-variable-operators.md | 2 ++ release_notes.txt | 8 ++++++++ snap/snapcraft.yaml | 2 +- 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/cmd/version.go b/cmd/version.go index 80754748..e68903c7 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -11,7 +11,7 @@ var ( GitDescribe string // Version is main version number that is being run at the moment. - Version = "4.22.1" + Version = "4.23.1" // VersionPrerelease is a pre-release marker for the version. If this is "" (empty string) // then it means that it is a final release. Otherwise, this is a pre-release diff --git a/pkg/yqlib/doc/operators/env-variable-operators.md b/pkg/yqlib/doc/operators/env-variable-operators.md index f837a2a7..a3973023 100644 --- a/pkg/yqlib/doc/operators/env-variable-operators.md +++ b/pkg/yqlib/doc/operators/env-variable-operators.md @@ -3,6 +3,7 @@ These operators are used to handle environment variables usage in expressions and documents. While environment variables can, of course, be passed in via your CLI with string interpolation, this often comes with complex quote escaping and can be tricky to write and read. There are three operators: + - `env` which takes a single environment variable name and parse the variable as a yaml node (be it a map, array, string, number of boolean) - `strenv` which also takes a single environment variable name, and always parses the variable as a string. - `envsubst` which you pipe strings into and it interpolates environment variables in strings using [envsubst](https://github.com/a8m/envsubst). @@ -10,6 +11,7 @@ There are three operators: ## EnvSubst Options You can optionally pass envsubst any of the following options: + - nu: NoUnset, this will fail if there are any referenced variables that are not set - ne: NoEmpty, this will fail if there are any referenced variables that are empty - ff: FailFast, this will abort on the first failure (rather than collect all the errors) diff --git a/pkg/yqlib/doc/operators/headers/env-variable-operators.md b/pkg/yqlib/doc/operators/headers/env-variable-operators.md index b4765c2a..b8d795c6 100644 --- a/pkg/yqlib/doc/operators/headers/env-variable-operators.md +++ b/pkg/yqlib/doc/operators/headers/env-variable-operators.md @@ -3,6 +3,7 @@ These operators are used to handle environment variables usage in expressions and documents. While environment variables can, of course, be passed in via your CLI with string interpolation, this often comes with complex quote escaping and can be tricky to write and read. There are three operators: + - `env` which takes a single environment variable name and parse the variable as a yaml node (be it a map, array, string, number of boolean) - `strenv` which also takes a single environment variable name, and always parses the variable as a string. - `envsubst` which you pipe strings into and it interpolates environment variables in strings using [envsubst](https://github.com/a8m/envsubst). @@ -10,6 +11,7 @@ There are three operators: ## EnvSubst Options You can optionally pass envsubst any of the following options: + - nu: NoUnset, this will fail if there are any referenced variables that are not set - ne: NoEmpty, this will fail if there are any referenced variables that are empty - ff: FailFast, this will abort on the first failure (rather than collect all the errors) diff --git a/release_notes.txt b/release_notes.txt index 8574847a..6e5f59dc 100644 --- a/release_notes.txt +++ b/release_notes.txt @@ -1,3 +1,11 @@ +4.23.1: + - Can now supply the envsubst operator with parameters (nounset, noempty, failfast). See [envsubst](https://mikefarah.gitbook.io/yq/operators/env-variable-operators) for details (#1137) + - Bumped dependencies + - Fixed '+=' problem with multiple matches #1145 + - Fixed bug with "and", "or" evaluating the RHS when not needed + - Fixed potential panic (thanks @mkatychev) + - Tweaked CLI help (thanks @justin-f-perez) + 4.22.1: - Added [pick] (https://mikefarah.gitbook.io/yq/operators/pick) operator - Can load expression from a file '--from-file' (#1120) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index bcb09ab1..3e7f5de3 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,5 +1,5 @@ name: yq -version: '4.22.1' +version: '4.23.1' summary: A lightweight and portable command-line YAML processor description: | The aim of the project is to be the jq or sed of yaml files.