From 24dcb56466081b28019d99b92fb3547829742748 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Sat, 11 Jan 2020 09:13:42 +1100 Subject: [PATCH] Inc version - fix help text --- snap/snapcraft.yaml | 2 +- version.go | 2 +- yq.go | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index ad171bd..05a0545 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,5 +1,5 @@ name: yq -version: '2.4.1' +version: '3.0.0' summary: A lightweight and portable command-line YAML processor description: | The aim of the project is to be the jq or sed of yaml files. diff --git a/version.go b/version.go index eca405f..4d0226b 100644 --- a/version.go +++ b/version.go @@ -11,7 +11,7 @@ var ( GitDescribe string // Version is main version number that is being run at the moment. - Version = "2.4.1" + Version = "3.0.0" // VersionPrerelease is a pre-release marker for the version. If this is "" (empty string) // then it means that it is a final release. Otherwise, this is a pre-release diff --git a/yq.go b/yq.go index 59d2648..931be12 100644 --- a/yq.go +++ b/yq.go @@ -99,6 +99,7 @@ func createReadCmd() *cobra.Command { yq read things.yaml a.b.c yq r - a.b.c (reads from stdin) yq r things.yaml a.*.c +yq r things.yaml a.**.c yq r -d1 things.yaml 'a.array[0].blah' yq r things.yaml 'a.array[*].blah' yq r -- things.yaml --key-starting-with-dashes.blah @@ -118,6 +119,8 @@ func createWriteCmd() *cobra.Command { Short: "yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValue", Example: ` yq write things.yaml a.b.c true +yq write things.yaml 'a.*.c' true +yq write things.yaml 'a.**' true yq write things.yaml a.b.c --tag '!!str' true yq write things.yaml a.b.c --tag '!!float' 3 yq write --inplace -- things.yaml a.b.c --cat @@ -183,6 +186,8 @@ func createDeleteCmd() *cobra.Command { Short: "yq d [--inplace/-i] [--doc/-d index] sample.yaml a.b.c", Example: ` yq delete things.yaml a.b.c +yq delete things.yaml a.*.c +yq delete things.yaml a.** yq delete --inplace things.yaml a.b.c yq delete --inplace -- things.yaml --key-starting-with-dash yq d -i things.yaml a.b.c