From 4123669efefffd99e2693e2beaee732beb2f7762 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Mon, 20 Sep 2021 09:57:41 +1000 Subject: [PATCH] Help text tweak --- cmd/evaluate_all_command.go | 4 ++-- cmd/evalute_sequence_command.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/evaluate_all_command.go b/cmd/evaluate_all_command.go index d14bbc51..bb3f04bf 100644 --- a/cmd/evaluate_all_command.go +++ b/cmd/evaluate_all_command.go @@ -24,8 +24,8 @@ yq ea -i 'select(fi == 0) * select(fi == 1)' f1.yml f2.yml # Merge all given files yq ea '. as $item ireduce ({}; . * $item )' file1.yml file2.yml ... -# Read from STDIN -## use '-' as a filename to read from STDIN +# Pipe from STDIN +## use '-' as a filename to pipe from STDIN 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/) diff --git a/cmd/evalute_sequence_command.go b/cmd/evalute_sequence_command.go index c11a073f..c5daea88 100644 --- a/cmd/evalute_sequence_command.go +++ b/cmd/evalute_sequence_command.go @@ -21,8 +21,8 @@ yq e '.a.b' f1.yml f2.yml # Prints out the file yq e sample.yaml -# Read from STDIN -## use '-' as a filename to read from STDIN +# Pipe from STDIN +## use '-' as a filename to pipe from STDIN cat file2.yml | yq e '.a.b' file1.yml - file3.yml # Creates a new yaml document