mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
Inc version - fix help text
This commit is contained in:
parent
728cbe991a
commit
24dcb56466
@ -1,5 +1,5 @@
|
|||||||
name: yq
|
name: yq
|
||||||
version: '2.4.1'
|
version: '3.0.0'
|
||||||
summary: A lightweight and portable command-line YAML processor
|
summary: A lightweight and portable command-line YAML processor
|
||||||
description: |
|
description: |
|
||||||
The aim of the project is to be the jq or sed of yaml files.
|
The aim of the project is to be the jq or sed of yaml files.
|
||||||
|
@ -11,7 +11,7 @@ var (
|
|||||||
GitDescribe string
|
GitDescribe string
|
||||||
|
|
||||||
// Version is main version number that is being run at the moment.
|
// 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)
|
// 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
|
// then it means that it is a final release. Otherwise, this is a pre-release
|
||||||
|
5
yq.go
5
yq.go
@ -99,6 +99,7 @@ func createReadCmd() *cobra.Command {
|
|||||||
yq read things.yaml a.b.c
|
yq read things.yaml a.b.c
|
||||||
yq r - a.b.c (reads from stdin)
|
yq r - a.b.c (reads from stdin)
|
||||||
yq r things.yaml a.*.c
|
yq r things.yaml a.*.c
|
||||||
|
yq r things.yaml a.**.c
|
||||||
yq r -d1 things.yaml 'a.array[0].blah'
|
yq r -d1 things.yaml 'a.array[0].blah'
|
||||||
yq r things.yaml 'a.array[*].blah'
|
yq r things.yaml 'a.array[*].blah'
|
||||||
yq r -- things.yaml --key-starting-with-dashes.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",
|
Short: "yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValue",
|
||||||
Example: `
|
Example: `
|
||||||
yq write things.yaml a.b.c true
|
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 '!!str' true
|
||||||
yq write things.yaml a.b.c --tag '!!float' 3
|
yq write things.yaml a.b.c --tag '!!float' 3
|
||||||
yq write --inplace -- things.yaml a.b.c --cat
|
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",
|
Short: "yq d [--inplace/-i] [--doc/-d index] sample.yaml a.b.c",
|
||||||
Example: `
|
Example: `
|
||||||
yq delete things.yaml a.b.c
|
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 a.b.c
|
||||||
yq delete --inplace -- things.yaml --key-starting-with-dash
|
yq delete --inplace -- things.yaml --key-starting-with-dash
|
||||||
yq d -i things.yaml a.b.c
|
yq d -i things.yaml a.b.c
|
||||||
|
Loading…
Reference in New Issue
Block a user