diff --git a/commands/evaluate.md b/commands/evaluate.md index fc76f796..d89f177b 100644 --- a/commands/evaluate.md +++ b/commands/evaluate.md @@ -8,7 +8,7 @@ description: >- Note that (as of 4.18.1) this is the default command when none is supplied to yq. -## Usage: +## Usage: ```bash yq eval [expression] [yaml_file1]... [flags] diff --git a/upgrading-from-v3.md b/upgrading-from-v3.md index 1b752e6f..5c6d551a 100644 --- a/upgrading-from-v3.md +++ b/upgrading-from-v3.md @@ -130,7 +130,7 @@ See the [multiply documentation](https://mikefarah.gitbook.io/yq/operators/multi ### Prefix yaml -Use the [Create / Collect Into Object ](broken-reference)operator to create a new object with the desired prefix. +Use the [Create / Collect Into Object ](broken-reference)operator to create a new object with the desired prefix. v3: diff --git a/usage/output-format.md b/usage/output-format.md index 47515246..0503e00f 100644 --- a/usage/output-format.md +++ b/usage/output-format.md @@ -4,15 +4,15 @@ description: Flags to control yaml and json output format # Output format -These flags are available for all `yq` commands. +These flags are available for all `yq` commands. ## Color -By default, `yq` prints with colours if it detects a terminal. You can manully this by using either +By default, `yq` prints with colours if it detects a terminal. You can manually change this by using either -The `--colors/-C`flag to force print with colors. +The `--colors/-C` flag to force print with colors. -The \``--no-colors/-M` flag to force print without colours +The `--no-colors/-M` flag to force print without colours ## Pretty Print @@ -20,7 +20,7 @@ To print out idiomatic `yaml` use the `--prettyPrint/-P` flag. Note that this is ## Indent -Use the indent flag `--indent/-I` to control the number of spaces used for indentation. This also works for JSON output. The default value is 2. +Use the indent flag `--indent/-I` to control the number of spaces used for indentation. This also works for JSON output. The default value is 2. Note that lists are indented at the same level as the map key at indent level 2, but are more deeply indented at indent level 4 and greater. This is (currently) a quirk of the underlying [yaml parser](https://github.com/go-yaml/yaml/tree/v3).