From c1640fb10d4b18956f91cb4bb36da06a2a8129a9 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Tue, 25 Oct 2022 12:44:56 +1100 Subject: [PATCH] Removing old version notice --- pkg/yqlib/doc/notification-snippet.md | 6 ------ pkg/yqlib/doc/operators/add.md | 6 ------ pkg/yqlib/doc/operators/alternative-default-value.md | 6 ------ pkg/yqlib/doc/operators/anchor-and-alias-operators.md | 6 ------ pkg/yqlib/doc/operators/assign-update.md | 6 ------ pkg/yqlib/doc/operators/boolean-operators.md | 6 ------ pkg/yqlib/doc/operators/collect-into-array.md | 6 ------ pkg/yqlib/doc/operators/column.md | 6 ------ pkg/yqlib/doc/operators/comment-operators.md | 6 ------ pkg/yqlib/doc/operators/compare.md | 6 ------ pkg/yqlib/doc/operators/contains.md | 6 ------ pkg/yqlib/doc/operators/create-collect-into-object.md | 6 ------ pkg/yqlib/doc/operators/datetime.md | 6 ------ pkg/yqlib/doc/operators/delete.md | 6 ------ pkg/yqlib/doc/operators/document-index.md | 6 ------ pkg/yqlib/doc/operators/encode-decode.md | 6 ------ pkg/yqlib/doc/operators/entries.md | 6 ------ pkg/yqlib/doc/operators/env-variable-operators.md | 6 ------ pkg/yqlib/doc/operators/equals.md | 6 ------ pkg/yqlib/doc/operators/error.md | 6 ------ pkg/yqlib/doc/operators/eval.md | 6 ------ pkg/yqlib/doc/operators/file-operators.md | 6 ------ pkg/yqlib/doc/operators/flatten.md | 6 ------ pkg/yqlib/doc/operators/group-by.md | 6 ------ pkg/yqlib/doc/operators/has.md | 6 ------ pkg/yqlib/doc/operators/keys.md | 6 ------ pkg/yqlib/doc/operators/length.md | 6 ------ pkg/yqlib/doc/operators/line.md | 6 ------ pkg/yqlib/doc/operators/load.md | 6 ------ pkg/yqlib/doc/operators/map.md | 6 ------ pkg/yqlib/doc/operators/multiply-merge.md | 6 ------ pkg/yqlib/doc/operators/parent.md | 6 ------ pkg/yqlib/doc/operators/path.md | 6 ------ pkg/yqlib/doc/operators/pick.md | 6 ------ pkg/yqlib/doc/operators/pipe.md | 6 ------ pkg/yqlib/doc/operators/recursive-descent-glob.md | 6 ------ pkg/yqlib/doc/operators/reduce.md | 6 ------ pkg/yqlib/doc/operators/reverse.md | 6 ------ pkg/yqlib/doc/operators/select.md | 6 ------ pkg/yqlib/doc/operators/sort-keys.md | 6 ------ pkg/yqlib/doc/operators/sort.md | 6 ------ pkg/yqlib/doc/operators/split-into-documents.md | 6 ------ pkg/yqlib/doc/operators/string-operators.md | 6 ------ pkg/yqlib/doc/operators/style.md | 6 ------ pkg/yqlib/doc/operators/subtract.md | 6 ------ pkg/yqlib/doc/operators/tag.md | 6 ------ pkg/yqlib/doc/operators/traverse-read.md | 6 ------ pkg/yqlib/doc/operators/union.md | 6 ------ pkg/yqlib/doc/operators/unique.md | 6 ------ pkg/yqlib/doc/operators/variable-operators.md | 6 ------ pkg/yqlib/doc/operators/with.md | 6 ------ pkg/yqlib/doc/usage/convert.md | 6 ------ pkg/yqlib/doc/usage/csv-tsv.md | 6 ------ pkg/yqlib/doc/usage/properties.md | 6 ------ pkg/yqlib/doc/usage/xml.md | 6 ------ 55 files changed, 330 deletions(-) diff --git a/pkg/yqlib/doc/notification-snippet.md b/pkg/yqlib/doc/notification-snippet.md index 73e76835..e69de29b 100644 --- a/pkg/yqlib/doc/notification-snippet.md +++ b/pkg/yqlib/doc/notification-snippet.md @@ -1,6 +0,0 @@ - -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} diff --git a/pkg/yqlib/doc/operators/add.md b/pkg/yqlib/doc/operators/add.md index e6c3e099..ecadb84f 100644 --- a/pkg/yqlib/doc/operators/add.md +++ b/pkg/yqlib/doc/operators/add.md @@ -9,12 +9,6 @@ Add behaves differently according to the type of the LHS: Use `+=` as a relative append assign for things like increment. Note that `.a += .x` is equivalent to running `.a = .a + .x`. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Concatenate arrays Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/alternative-default-value.md b/pkg/yqlib/doc/operators/alternative-default-value.md index 1c70d0cb..127465ea 100644 --- a/pkg/yqlib/doc/operators/alternative-default-value.md +++ b/pkg/yqlib/doc/operators/alternative-default-value.md @@ -2,12 +2,6 @@ This operator is used to provide alternative (or default) values when a particular expression is either null or false. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## LHS is defined Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/anchor-and-alias-operators.md b/pkg/yqlib/doc/operators/anchor-and-alias-operators.md index 08204a51..8dbfd996 100644 --- a/pkg/yqlib/doc/operators/anchor-and-alias-operators.md +++ b/pkg/yqlib/doc/operators/anchor-and-alias-operators.md @@ -5,12 +5,6 @@ Use the `alias` and `anchor` operators to read and write yaml aliases and anchor `yq` supports merge aliases (like `<<: *blah`) however this is no longer in the standard yaml spec (1.2) and so `yq` will automatically add the `!!merge` tag to these nodes as it is effectively a custom tag. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Merge one map see https://yaml.org/type/merge.html diff --git a/pkg/yqlib/doc/operators/assign-update.md b/pkg/yqlib/doc/operators/assign-update.md index af2d80c3..5885efc9 100644 --- a/pkg/yqlib/doc/operators/assign-update.md +++ b/pkg/yqlib/doc/operators/assign-update.md @@ -12,12 +12,6 @@ This will do a similar thing to the plain form, however, the RHS expression is r ### Flags - `c` clobber custom tags -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Create yaml file Running ```bash diff --git a/pkg/yqlib/doc/operators/boolean-operators.md b/pkg/yqlib/doc/operators/boolean-operators.md index a9f5ddab..c409445a 100644 --- a/pkg/yqlib/doc/operators/boolean-operators.md +++ b/pkg/yqlib/doc/operators/boolean-operators.md @@ -16,12 +16,6 @@ These are most commonly used with the `select` operator to filter particular nod - comparison (`>=`, `<` etc) operators [here](https://mikefarah.gitbook.io/yq/operators/compare) - select operator [here](https://mikefarah.gitbook.io/yq/operators/select) -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## `or` example Running ```bash diff --git a/pkg/yqlib/doc/operators/collect-into-array.md b/pkg/yqlib/doc/operators/collect-into-array.md index 14c2bda0..73152e51 100644 --- a/pkg/yqlib/doc/operators/collect-into-array.md +++ b/pkg/yqlib/doc/operators/collect-into-array.md @@ -3,12 +3,6 @@ This creates an array using the expression between the square brackets. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Collect empty Running ```bash diff --git a/pkg/yqlib/doc/operators/column.md b/pkg/yqlib/doc/operators/column.md index 3902933a..d2cef944 100644 --- a/pkg/yqlib/doc/operators/column.md +++ b/pkg/yqlib/doc/operators/column.md @@ -2,12 +2,6 @@ Returns the column of the matching node. Starts from 1, 0 indicates there was no column data. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Returns column of _value_ node Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/comment-operators.md b/pkg/yqlib/doc/operators/comment-operators.md index 5560b1e9..e4dd23ed 100644 --- a/pkg/yqlib/doc/operators/comment-operators.md +++ b/pkg/yqlib/doc/operators/comment-operators.md @@ -10,12 +10,6 @@ This will assign the LHS nodes comments to the expression on the RHS. The RHS is ### relative form: `|=` Similar to the plain form, however the RHS evaluates against each matching LHS node! This is useful if you want to set the comments as a relative expression of the node, for instance its value or path. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Set line comment Set the comment on the key node for more reliability (see below). diff --git a/pkg/yqlib/doc/operators/compare.md b/pkg/yqlib/doc/operators/compare.md index e096930f..fbd1b1e1 100644 --- a/pkg/yqlib/doc/operators/compare.md +++ b/pkg/yqlib/doc/operators/compare.md @@ -14,12 +14,6 @@ The following types are currently supported: - boolean operators (`and`, `or`, `any` etc) [here](https://mikefarah.gitbook.io/yq/operators/boolean-operators) - select operator [here](https://mikefarah.gitbook.io/yq/operators/select) -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Compare numbers (>) Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/contains.md b/pkg/yqlib/doc/operators/contains.md index 4295a0b5..046b4ca2 100644 --- a/pkg/yqlib/doc/operators/contains.md +++ b/pkg/yqlib/doc/operators/contains.md @@ -2,12 +2,6 @@ This returns `true` if the context contains the passed in parameter, and false otherwise. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Array contains array Array is equal or subset of diff --git a/pkg/yqlib/doc/operators/create-collect-into-object.md b/pkg/yqlib/doc/operators/create-collect-into-object.md index 12802ba5..2c132bb8 100644 --- a/pkg/yqlib/doc/operators/create-collect-into-object.md +++ b/pkg/yqlib/doc/operators/create-collect-into-object.md @@ -2,12 +2,6 @@ This is used to construct objects (or maps). This can be used against existing yaml, or to create fresh yaml documents. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Collect empty object Running ```bash diff --git a/pkg/yqlib/doc/operators/datetime.md b/pkg/yqlib/doc/operators/datetime.md index 36048e82..555fe292 100644 --- a/pkg/yqlib/doc/operators/datetime.md +++ b/pkg/yqlib/doc/operators/datetime.md @@ -25,12 +25,6 @@ Durations are parsed using golangs built in [ParseDuration](https://pkg.go.dev/t You can durations to time using the `+` operator. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Format: from standard RFC3339 format Providing a single parameter assumes a standard RFC3339 datetime format. If the target format is not a valid yaml datetime format, the result will be a string tagged node. diff --git a/pkg/yqlib/doc/operators/delete.md b/pkg/yqlib/doc/operators/delete.md index 9eecca59..6d0a99a5 100644 --- a/pkg/yqlib/doc/operators/delete.md +++ b/pkg/yqlib/doc/operators/delete.md @@ -2,12 +2,6 @@ Deletes matching entries in maps or arrays. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Delete entry in map Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/document-index.md b/pkg/yqlib/doc/operators/document-index.md index ffb0936d..619fd391 100644 --- a/pkg/yqlib/doc/operators/document-index.md +++ b/pkg/yqlib/doc/operators/document-index.md @@ -2,12 +2,6 @@ Use the `documentIndex` operator (or the `di` shorthand) to select nodes of a particular document. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Retrieve a document index Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/encode-decode.md b/pkg/yqlib/doc/operators/encode-decode.md index 8a2352d3..71a1863c 100644 --- a/pkg/yqlib/doc/operators/encode-decode.md +++ b/pkg/yqlib/doc/operators/encode-decode.md @@ -25,12 +25,6 @@ XML uses the `--xml-attribute-prefix` and `xml-content-name` flags to identify a Base64 assumes [rfc4648](https://rfc-editor.org/rfc/rfc4648.html) encoding. Encoding and decoding both assume that the content is a string. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Encode value as json string Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/entries.md b/pkg/yqlib/doc/operators/entries.md index 3c799b4c..a466e439 100644 --- a/pkg/yqlib/doc/operators/entries.md +++ b/pkg/yqlib/doc/operators/entries.md @@ -2,12 +2,6 @@ Similar to the same named functions in `jq` these functions convert to/from an object and an array of key-value pairs. This is most useful for performing operations on keys of maps. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## to_entries Map Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/env-variable-operators.md b/pkg/yqlib/doc/operators/env-variable-operators.md index a3973023..c616f66c 100644 --- a/pkg/yqlib/doc/operators/env-variable-operators.md +++ b/pkg/yqlib/doc/operators/env-variable-operators.md @@ -30,12 +30,6 @@ yq '(.. | select(tag == "!!str")) |= envsubst' file.yaml ``` -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Read string environment variable Running ```bash diff --git a/pkg/yqlib/doc/operators/equals.md b/pkg/yqlib/doc/operators/equals.md index 4126bf9d..ca5099b7 100644 --- a/pkg/yqlib/doc/operators/equals.md +++ b/pkg/yqlib/doc/operators/equals.md @@ -21,12 +21,6 @@ The not equals `!=` operator returns `false` if the LHS is equal to the RHS. - select operator [here](https://mikefarah.gitbook.io/yq/operators/select) -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Match string Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/error.md b/pkg/yqlib/doc/operators/error.md index 74a8671e..0b7a2470 100644 --- a/pkg/yqlib/doc/operators/error.md +++ b/pkg/yqlib/doc/operators/error.md @@ -2,12 +2,6 @@ Use this operation to short-circuit expressions. Useful for validation. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Validate a particular value Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/eval.md b/pkg/yqlib/doc/operators/eval.md index eae33bd1..1a8a010d 100644 --- a/pkg/yqlib/doc/operators/eval.md +++ b/pkg/yqlib/doc/operators/eval.md @@ -6,12 +6,6 @@ Use `eval` to dynamically process an expression - for instance from an environme Tip: This can be useful way parameterise complex scripts. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Dynamically evaluate a path Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/file-operators.md b/pkg/yqlib/doc/operators/file-operators.md index fdfb9e3d..b1dacd78 100644 --- a/pkg/yqlib/doc/operators/file-operators.md +++ b/pkg/yqlib/doc/operators/file-operators.md @@ -10,12 +10,6 @@ Note the use of eval-all to ensure all documents are loaded into memory. yq eval-all 'select(fi == 0) * select(filename == "file2.yaml")' file1.yaml file2.yaml ``` -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Get filename Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/flatten.md b/pkg/yqlib/doc/operators/flatten.md index f4533646..cb3bc268 100644 --- a/pkg/yqlib/doc/operators/flatten.md +++ b/pkg/yqlib/doc/operators/flatten.md @@ -1,12 +1,6 @@ # Flatten This recursively flattens arrays. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Flatten Recursively flattens all arrays diff --git a/pkg/yqlib/doc/operators/group-by.md b/pkg/yqlib/doc/operators/group-by.md index fc5bb254..f5169b72 100644 --- a/pkg/yqlib/doc/operators/group-by.md +++ b/pkg/yqlib/doc/operators/group-by.md @@ -2,12 +2,6 @@ This is used to group items in an array by an expression. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Group by field Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/has.md b/pkg/yqlib/doc/operators/has.md index 007ce289..4a5e294a 100644 --- a/pkg/yqlib/doc/operators/has.md +++ b/pkg/yqlib/doc/operators/has.md @@ -2,12 +2,6 @@ This is operation that returns true if the key exists in a map (or index in an array), false otherwise. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Has map key Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/keys.md b/pkg/yqlib/doc/operators/keys.md index f4ef293a..4dec429b 100644 --- a/pkg/yqlib/doc/operators/keys.md +++ b/pkg/yqlib/doc/operators/keys.md @@ -2,12 +2,6 @@ Use the `keys` operator to return map keys or array indices. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Map keys Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/length.md b/pkg/yqlib/doc/operators/length.md index 947a1b6e..6315e5b2 100644 --- a/pkg/yqlib/doc/operators/length.md +++ b/pkg/yqlib/doc/operators/length.md @@ -2,12 +2,6 @@ Returns the lengths of the nodes. Length is defined according to the type of the node. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## String length returns length of string diff --git a/pkg/yqlib/doc/operators/line.md b/pkg/yqlib/doc/operators/line.md index dcbf6b6e..9fc4cd0c 100644 --- a/pkg/yqlib/doc/operators/line.md +++ b/pkg/yqlib/doc/operators/line.md @@ -2,12 +2,6 @@ Returns the line of the matching node. Starts from 1, 0 indicates there was no line data. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Returns line of _value_ node Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/load.md b/pkg/yqlib/doc/operators/load.md index 0b2afb73..79dc0149 100644 --- a/pkg/yqlib/doc/operators/load.md +++ b/pkg/yqlib/doc/operators/load.md @@ -45,12 +45,6 @@ this.is = a properties file bXkgc2VjcmV0IGNoaWxsaSByZWNpcGUgaXMuLi4u ``` -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Simple example Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/map.md b/pkg/yqlib/doc/operators/map.md index 5555b1a8..991167e2 100644 --- a/pkg/yqlib/doc/operators/map.md +++ b/pkg/yqlib/doc/operators/map.md @@ -2,12 +2,6 @@ Maps values of an array. Use `map_values` to map values of an object. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Map array Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/multiply-merge.md b/pkg/yqlib/doc/operators/multiply-merge.md index c203e357..6db12660 100644 --- a/pkg/yqlib/doc/operators/multiply-merge.md +++ b/pkg/yqlib/doc/operators/multiply-merge.md @@ -36,12 +36,6 @@ By default - `yq` merge is naive. It merges maps when they match the key name, a For more complex array merging (e.g. merging items that match on a certain key) please see the example [here](https://mikefarah.gitbook.io/yq/operators/multiply-merge#merge-arrays-of-objects-together-matching-on-a-key) -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Multiply integers Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/parent.md b/pkg/yqlib/doc/operators/parent.md index 60cc1529..0ef18d55 100644 --- a/pkg/yqlib/doc/operators/parent.md +++ b/pkg/yqlib/doc/operators/parent.md @@ -2,12 +2,6 @@ Parent simply returns the parent nodes of the matching nodes. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Simple example Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/path.md b/pkg/yqlib/doc/operators/path.md index 51ac3d4f..30c910b3 100644 --- a/pkg/yqlib/doc/operators/path.md +++ b/pkg/yqlib/doc/operators/path.md @@ -7,12 +7,6 @@ You can get the key/index of matching nodes by using the `path` operator to retu Use `setpath` to set a value to the path array returned by `path`, and similarly `delpaths` for an array of path arrays. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Map path Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/pick.md b/pkg/yqlib/doc/operators/pick.md index b93bf04f..45bccc8b 100644 --- a/pkg/yqlib/doc/operators/pick.md +++ b/pkg/yqlib/doc/operators/pick.md @@ -4,12 +4,6 @@ Filter a map by the specified list of keys. Map is returned with the key in the Similarly, filter an array by the specified list of indices. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Pick keys from map Note that the order of the keys matches the pick order and non existent keys are skipped. diff --git a/pkg/yqlib/doc/operators/pipe.md b/pkg/yqlib/doc/operators/pipe.md index 21aa3807..0821554a 100644 --- a/pkg/yqlib/doc/operators/pipe.md +++ b/pkg/yqlib/doc/operators/pipe.md @@ -2,12 +2,6 @@ Pipe the results of an expression into another. Like the bash operator. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Simple Pipe Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/recursive-descent-glob.md b/pkg/yqlib/doc/operators/recursive-descent-glob.md index 45c6052b..1bb1656c 100644 --- a/pkg/yqlib/doc/operators/recursive-descent-glob.md +++ b/pkg/yqlib/doc/operators/recursive-descent-glob.md @@ -19,12 +19,6 @@ For instance to set the `style` of all nodes in a yaml doc, including the map ke ```bash yq '... style= "flow"' file.yaml ``` -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Recurse map (values only) Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/reduce.md b/pkg/yqlib/doc/operators/reduce.md index e06a2a23..80affbd9 100644 --- a/pkg/yqlib/doc/operators/reduce.md +++ b/pkg/yqlib/doc/operators/reduce.md @@ -21,12 +21,6 @@ Reduce syntax in `yq` is a little different from `jq` - as `yq` (currently) isn' To that end, the reduce operator is called `ireduce` for backwards compatibility if a `jq` like prefix version of `reduce` is ever added. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Sum numbers Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/reverse.md b/pkg/yqlib/doc/operators/reverse.md index eb9cafc3..77f4037f 100644 --- a/pkg/yqlib/doc/operators/reverse.md +++ b/pkg/yqlib/doc/operators/reverse.md @@ -2,12 +2,6 @@ Reverses the order of the items in an array -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Reverse Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/select.md b/pkg/yqlib/doc/operators/select.md index 1f1fdb4f..67b91f85 100644 --- a/pkg/yqlib/doc/operators/select.md +++ b/pkg/yqlib/doc/operators/select.md @@ -8,12 +8,6 @@ Select is used to filter arrays and maps by a boolean expression. - comparison (`>=`, `<` etc) operators [here](https://mikefarah.gitbook.io/yq/operators/compare) - boolean operators (`and`, `or`, `any` etc) [here](https://mikefarah.gitbook.io/yq/operators/boolean-operators) -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Select elements from array using wildcard prefix Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/sort-keys.md b/pkg/yqlib/doc/operators/sort-keys.md index 36c605d2..41a4340b 100644 --- a/pkg/yqlib/doc/operators/sort-keys.md +++ b/pkg/yqlib/doc/operators/sort-keys.md @@ -15,12 +15,6 @@ Note that `yq` does not yet consider anchors when sorting by keys - this may res For more advanced sorting, using `to_entries` to convert the map to an array, then sort/process the array as you like (e.g. using `sort_by`) and convert back to a map using `from_entries`. See [here](https://mikefarah.gitbook.io/yq/operators/entries#custom-sort-map-keys) for an example. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Sort keys of map Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/sort.md b/pkg/yqlib/doc/operators/sort.md index b7b810d3..54111e8d 100644 --- a/pkg/yqlib/doc/operators/sort.md +++ b/pkg/yqlib/doc/operators/sort.md @@ -7,12 +7,6 @@ To sort by descending order, pipe the results through the `reverse` operator aft Note that at this stage, `yq` only sorts scalar fields. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Sort by string field Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/split-into-documents.md b/pkg/yqlib/doc/operators/split-into-documents.md index a4f22f3d..e072328f 100644 --- a/pkg/yqlib/doc/operators/split-into-documents.md +++ b/pkg/yqlib/doc/operators/split-into-documents.md @@ -2,12 +2,6 @@ This operator splits all matches into separate documents -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Split empty Running ```bash diff --git a/pkg/yqlib/doc/operators/string-operators.md b/pkg/yqlib/doc/operators/string-operators.md index 3882a67a..585404cf 100644 --- a/pkg/yqlib/doc/operators/string-operators.md +++ b/pkg/yqlib/doc/operators/string-operators.md @@ -56,12 +56,6 @@ IFS= read -rd '' output < <(cat my_file) output=$output ./yq '.data.values = strenv(output)' first.yml ``` -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## To up (upper) case Works with unicode characters diff --git a/pkg/yqlib/doc/operators/style.md b/pkg/yqlib/doc/operators/style.md index e4f4a924..b21a5b26 100644 --- a/pkg/yqlib/doc/operators/style.md +++ b/pkg/yqlib/doc/operators/style.md @@ -2,12 +2,6 @@ The style operator can be used to get or set the style of nodes (e.g. string style, yaml style) -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Update and set style of a particular node (simple) Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/subtract.md b/pkg/yqlib/doc/operators/subtract.md index a8f8d338..b850cc97 100644 --- a/pkg/yqlib/doc/operators/subtract.md +++ b/pkg/yqlib/doc/operators/subtract.md @@ -2,12 +2,6 @@ You can use subtract to subtract numbers, as well as removing elements from an array. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Array subtraction Running ```bash diff --git a/pkg/yqlib/doc/operators/tag.md b/pkg/yqlib/doc/operators/tag.md index 33e11f65..43db1439 100644 --- a/pkg/yqlib/doc/operators/tag.md +++ b/pkg/yqlib/doc/operators/tag.md @@ -2,12 +2,6 @@ The tag operator can be used to get or set the tag of nodes (e.g. `!!str`, `!!int`, `!!bool`). -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Get tag Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/traverse-read.md b/pkg/yqlib/doc/operators/traverse-read.md index f8c07b8d..3a4452e3 100644 --- a/pkg/yqlib/doc/operators/traverse-read.md +++ b/pkg/yqlib/doc/operators/traverse-read.md @@ -2,12 +2,6 @@ This is the simplest (and perhaps most used) operator, it is used to navigate deeply into yaml structures. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Simple map navigation Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/union.md b/pkg/yqlib/doc/operators/union.md index 6a477698..abf0befe 100644 --- a/pkg/yqlib/doc/operators/union.md +++ b/pkg/yqlib/doc/operators/union.md @@ -2,12 +2,6 @@ This operator is used to combine different results together. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Combine scalars Running ```bash diff --git a/pkg/yqlib/doc/operators/unique.md b/pkg/yqlib/doc/operators/unique.md index c7bd23ba..a1bc443c 100644 --- a/pkg/yqlib/doc/operators/unique.md +++ b/pkg/yqlib/doc/operators/unique.md @@ -3,12 +3,6 @@ This is used to filter out duplicated items in an array. Note that the original order of the array is maintained. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Unique array of scalars (string/numbers) Note that unique maintains the original order of the array. diff --git a/pkg/yqlib/doc/operators/variable-operators.md b/pkg/yqlib/doc/operators/variable-operators.md index e7efcd05..5c9a293d 100644 --- a/pkg/yqlib/doc/operators/variable-operators.md +++ b/pkg/yqlib/doc/operators/variable-operators.md @@ -4,12 +4,6 @@ Like the `jq` equivalents, variables are sometimes required for the more complex Note that there is also an additional `ref` operator that holds a reference (instead of a copy) of the path, allowing you to make multiple changes to the same path. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Single value variable Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/operators/with.md b/pkg/yqlib/doc/operators/with.md index 9804cfe9..6b1a913f 100644 --- a/pkg/yqlib/doc/operators/with.md +++ b/pkg/yqlib/doc/operators/with.md @@ -2,12 +2,6 @@ Use the `with` operator to conveniently make multiple updates to a deeply nested path, or to update array elements relatively to each other. The first argument expression sets the root context, and the second expression runs against that root context. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Update and style Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/usage/convert.md b/pkg/yqlib/doc/usage/convert.md index f9159457..1f149c11 100644 --- a/pkg/yqlib/doc/usage/convert.md +++ b/pkg/yqlib/doc/usage/convert.md @@ -5,12 +5,6 @@ Encode and decode to and from JSON. Supports multiple JSON documents in a single Note that YAML is a superset of (single document) JSON - so you don't have to use the JSON parser to read JSON when there is only one JSON document in the input. You will probably want to pretty print the result in this case, to get idiomatic YAML styling. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Parse json: simple JSON is a subset of yaml, so all you need to do is prettify the output diff --git a/pkg/yqlib/doc/usage/csv-tsv.md b/pkg/yqlib/doc/usage/csv-tsv.md index 03749ab6..c58e42cd 100644 --- a/pkg/yqlib/doc/usage/csv-tsv.md +++ b/pkg/yqlib/doc/usage/csv-tsv.md @@ -29,12 +29,6 @@ Fifi,cat ``` -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Encode CSV simple Given a sample.yml file of: ```yaml diff --git a/pkg/yqlib/doc/usage/properties.md b/pkg/yqlib/doc/usage/properties.md index f80bba35..e7952fcf 100644 --- a/pkg/yqlib/doc/usage/properties.md +++ b/pkg/yqlib/doc/usage/properties.md @@ -4,12 +4,6 @@ Encode/Decode/Roundtrip to/from a property file. Line comments on value nodes wi By default, empty maps and arrays are not encoded - see below for an example on how to encode a value for these. -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Encode properties Note that empty arrays and maps are not encoded by default. diff --git a/pkg/yqlib/doc/usage/xml.md b/pkg/yqlib/doc/usage/xml.md index 41102009..714194c3 100644 --- a/pkg/yqlib/doc/usage/xml.md +++ b/pkg/yqlib/doc/usage/xml.md @@ -39,12 +39,6 @@ In addition to the above flags, there are the following xml encoder/decoder opti See below for examples -{% hint style="warning" %} -Note that versions prior to 4.18 require the 'eval/e' command to be specified. - -`yq e ` -{% endhint %} - ## Parse xml: simple Notice how all the values are strings, see the next example on how you can fix that.