mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-13 22:38:04 +00:00
Fixed help length to prevent horizontal scroll in README
This commit is contained in:
parent
60de18391c
commit
c2c49dcb17
@ -65,9 +65,9 @@ Available Commands:
|
|||||||
delete yq d [--inplace/-i] [--doc/-d index] sample.yaml a.b.c
|
delete yq d [--inplace/-i] [--doc/-d index] sample.yaml a.b.c
|
||||||
help Help about any command
|
help Help about any command
|
||||||
merge yq m [--inplace/-i] [--doc/-d index] [--overwrite/-x] sample.yaml sample2.yaml
|
merge yq m [--inplace/-i] [--doc/-d index] [--overwrite/-x] sample.yaml sample2.yaml
|
||||||
new yq n [--script/-s script_file] a.b.c newValueForC
|
new yq n [--script/-s script_file] a.b.c newValue
|
||||||
read yq r [--doc/-d index] sample.yaml a.b.c
|
read yq r [--doc/-d index] sample.yaml a.b.c
|
||||||
write yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValueForC
|
write yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValue
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
-h, --help help for yq
|
-h, --help help for yq
|
||||||
|
4
yq.go
4
yq.go
@ -105,7 +105,7 @@ func createWriteCmd() *cobra.Command {
|
|||||||
var cmdWrite = &cobra.Command{
|
var cmdWrite = &cobra.Command{
|
||||||
Use: "write [yaml_file] [path] [value]",
|
Use: "write [yaml_file] [path] [value]",
|
||||||
Aliases: []string{"w"},
|
Aliases: []string{"w"},
|
||||||
Short: "yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValueForC",
|
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 cat
|
yq write things.yaml a.b.c cat
|
||||||
yq write --inplace things.yaml a.b.c cat
|
yq write --inplace things.yaml a.b.c cat
|
||||||
@ -161,7 +161,7 @@ func createNewCmd() *cobra.Command {
|
|||||||
var cmdNew = &cobra.Command{
|
var cmdNew = &cobra.Command{
|
||||||
Use: "new [path] [value]",
|
Use: "new [path] [value]",
|
||||||
Aliases: []string{"n"},
|
Aliases: []string{"n"},
|
||||||
Short: "yq n [--script/-s script_file] a.b.c newValueForC",
|
Short: "yq n [--script/-s script_file] a.b.c newValue",
|
||||||
Example: `
|
Example: `
|
||||||
yq new a.b.c cat
|
yq new a.b.c cat
|
||||||
yq n a.b.c cat
|
yq n a.b.c cat
|
||||||
|
Loading…
Reference in New Issue
Block a user