mirror of
https://github.com/mikefarah/yq.git
synced 2025-01-24 22:58:10 +00:00
Fixed doc typos (#1457)
This commit is contained in:
parent
25e91abe3a
commit
95a5e3b9e3
@ -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]
|
||||
|
@ -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:
|
||||
|
||||
|
@ -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).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user