Skip to content

Commit c2c49dc

Browse files
author
Mike Farah
committed
Fixed help length to prevent horizontal scroll in README
1 parent 60de183 commit c2c49dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ Available Commands:
6565
delete yq d [--inplace/-i] [--doc/-d index] sample.yaml a.b.c
6666
help Help about any command
6767
merge yq m [--inplace/-i] [--doc/-d index] [--overwrite/-x] sample.yaml sample2.yaml
68-
new yq n [--script/-s script_file] a.b.c newValueForC
68+
new yq n [--script/-s script_file] a.b.c newValue
6969
read yq r [--doc/-d index] sample.yaml a.b.c
70-
write yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValueForC
70+
write yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValue
7171
7272
Flags:
7373
-h, --help help for yq

yq.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func createWriteCmd() *cobra.Command {
105105
var cmdWrite = &cobra.Command{
106106
Use: "write [yaml_file] [path] [value]",
107107
Aliases: []string{"w"},
108-
Short: "yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValueForC",
108+
Short: "yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValue",
109109
Example: `
110110
yq write things.yaml a.b.c cat
111111
yq write --inplace things.yaml a.b.c cat
@@ -161,7 +161,7 @@ func createNewCmd() *cobra.Command {
161161
var cmdNew = &cobra.Command{
162162
Use: "new [path] [value]",
163163
Aliases: []string{"n"},
164-
Short: "yq n [--script/-s script_file] a.b.c newValueForC",
164+
Short: "yq n [--script/-s script_file] a.b.c newValue",
165165
Example: `
166166
yq new a.b.c cat
167167
yq n a.b.c cat

0 commit comments

Comments
 (0)