Help text tweak

This commit is contained in:
Mike Farah 2021-09-20 09:57:41 +10:00
parent 7caefc8521
commit 4123669efe
2 changed files with 4 additions and 4 deletions

View File

@ -24,8 +24,8 @@ yq ea -i 'select(fi == 0) * select(fi == 1)' f1.yml f2.yml
# Merge all given files # Merge all given files
yq ea '. as $item ireduce ({}; . * $item )' file1.yml file2.yml ... yq ea '. as $item ireduce ({}; . * $item )' file1.yml file2.yml ...
# Read from STDIN # Pipe from STDIN
## use '-' as a filename to read from STDIN ## use '-' as a filename to pipe from STDIN
cat file2.yml | yq ea '.a.b' file1.yml - file3.yml cat file2.yml | yq ea '.a.b' file1.yml - file3.yml
`, `,
Long: `yq is a portable command-line YAML processor (https://github.com/mikefarah/yq/) Long: `yq is a portable command-line YAML processor (https://github.com/mikefarah/yq/)

View File

@ -21,8 +21,8 @@ yq e '.a.b' f1.yml f2.yml
# Prints out the file # Prints out the file
yq e sample.yaml yq e sample.yaml
# Read from STDIN # Pipe from STDIN
## use '-' as a filename to read from STDIN ## use '-' as a filename to pipe from STDIN
cat file2.yml | yq e '.a.b' file1.yml - file3.yml cat file2.yml | yq e '.a.b' file1.yml - file3.yml
# Creates a new yaml document # Creates a new yaml document