From c2c49dcb17d81eeaa23e0a26b0e38a36a891479f Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Wed, 27 Jun 2018 19:37:18 +1000 Subject: [PATCH] Fixed help length to prevent horizontal scroll in README --- README.md | 4 ++-- yq.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 57a0387..1b8aeb1 100644 --- a/README.md +++ b/README.md @@ -65,9 +65,9 @@ Available Commands: delete yq d [--inplace/-i] [--doc/-d index] sample.yaml a.b.c help Help about any command 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 - 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: -h, --help help for yq diff --git a/yq.go b/yq.go index 00f7804..60d40a8 100644 --- a/yq.go +++ b/yq.go @@ -105,7 +105,7 @@ func createWriteCmd() *cobra.Command { var cmdWrite = &cobra.Command{ Use: "write [yaml_file] [path] [value]", 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: ` yq write 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{ Use: "new [path] [value]", 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: ` yq new a.b.c cat yq n a.b.c cat