Skip to content

Commit

Permalink
Bumping version
Browse files Browse the repository at this point in the history
  • Loading branch information
mikefarah committed Mar 20, 2022
1 parent 005b097 commit 03f57b7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions pkg/yqlib/doc/operators/env-variable-operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
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).


## 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)
Expand Down
2 changes: 2 additions & 0 deletions pkg/yqlib/doc/operators/headers/env-variable-operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
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).


## 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)
Expand Down
8 changes: 8 additions & 0 deletions release_notes.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 03f57b7

Please sign in to comment.