mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 13:48:06 +00:00
Updated docs
This commit is contained in:
parent
0328cfd619
commit
94a563dfd8
@ -158,6 +158,7 @@ Flags:
|
|||||||
-M, --no-colors force print with no colors
|
-M, --no-colors force print with no colors
|
||||||
-N, --no-doc Don't print document separators (---)
|
-N, --no-doc Don't print document separators (---)
|
||||||
-n, --null-input Don't read input, simply evaluate the expression given. Useful for creating yaml docs from scratch.
|
-n, --null-input Don't read input, simply evaluate the expression given. Useful for creating yaml docs from scratch.
|
||||||
|
-P, --prettyPrint pretty print, shorthand for '... style = ""'
|
||||||
-j, --tojson output as json. Set indent to 0 to print json in one line.
|
-j, --tojson output as json. Set indent to 0 to print json in one line.
|
||||||
-v, --verbose verbose mode
|
-v, --verbose verbose mode
|
||||||
-V, --version Print version information and quit
|
-V, --version Print version information and quit
|
||||||
|
@ -87,7 +87,7 @@ e: >-
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
description: "Pretty print",
|
description: "Pretty print",
|
||||||
subdescription: "Set empty (default) quote style, note the usage of `...` to match keys too.",
|
subdescription: "Set empty (default) quote style, note the usage of `...` to match keys too. Note that there is a `--prettyPrint/-P` short flag for this.",
|
||||||
document: `{a: cat, "b": 5, 'c': 3.2, "e": true}`,
|
document: `{a: cat, "b": 5, 'c': 3.2, "e": true}`,
|
||||||
expression: `... style=""`,
|
expression: `... style=""`,
|
||||||
expected: []string{
|
expected: []string{
|
||||||
|
Loading…
Reference in New Issue
Block a user