From c4acd9ac56c9d053f1709a3c27837c935ca33ffb Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Fri, 14 Jul 2023 15:25:28 +0200 Subject: [PATCH] review comments --- cmd/addplugins.go | 4 ++-- cmd/addtags.go | 4 ++-- cmd/listtags.go | 4 ++-- cmd/merge.go | 4 ++-- cmd/patch.go | 4 ++-- cmd/removetags.go | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cmd/addplugins.go b/cmd/addplugins.go index eef046084..3d735c982 100644 --- a/cmd/addplugins.go +++ b/cmd/addplugins.go @@ -108,8 +108,8 @@ func executeAddPlugins(cmd *cobra.Command, cfgFiles []string) error { func newAddPluginsCmd() *cobra.Command { addPluginsCmd := &cobra.Command{ Use: "add-plugins [flags] [...plugin-files]", - Short: "Adds plugins to objects in a decK file", - Long: `Adds plugins to objects in a decK file. + Short: "Add plugins to objects in a decK file", + Long: `Add plugins to objects in a decK file. The plugins are added to all objects that match the selector expressions. If no selectors are given, they will be added to the top-level 'plugins' array. diff --git a/cmd/addtags.go b/cmd/addtags.go index d060ee2ea..7675fa8e5 100644 --- a/cmd/addtags.go +++ b/cmd/addtags.go @@ -66,8 +66,8 @@ func executeAddTags(cmd *cobra.Command, tagsToAdd []string) error { func newAddTagsCmd() *cobra.Command { addTagsCmd := &cobra.Command{ Use: "add-tags [flags] tag [...tag]", - Short: "Adds tags to objects in a decK file", - Long: `Adds tags to objects in a decK file. + Short: "Add tags to objects in a decK file", + Long: `Add tags to objects in a decK file. The tags are added to all objects that match the selector expressions. If no selectors are given, all Kong entities are tagged.`, diff --git a/cmd/listtags.go b/cmd/listtags.go index d3ec8d787..d680ca8dc 100644 --- a/cmd/listtags.go +++ b/cmd/listtags.go @@ -67,8 +67,8 @@ func executeListTags(cmd *cobra.Command, _ []string) error { func newListTagsCmd() *cobra.Command { ListTagsCmd := &cobra.Command{ Use: "list-tags [flags]", - Short: "Lists current tags to objects in a decK file", - Long: `Lists current tags to objects in a decK file. + Short: "List current tags from objects in a decK file", + Long: `List current tags from objects in a decK file. The tags will be collected from all objects that match the selector expressions. If no selectors are given, all Kong entities will be scanned.`, diff --git a/cmd/merge.go b/cmd/merge.go index de8e4f2d1..ae53c6c31 100644 --- a/cmd/merge.go +++ b/cmd/merge.go @@ -44,8 +44,8 @@ func executeMerge(cmd *cobra.Command, args []string) error { func newMergeCmd() *cobra.Command { mergeCmd := &cobra.Command{ Use: "merge [flags] filename [...filename]", - Short: "Merges multiple decK files into one", - Long: `Merges multiple decK files into one. + Short: "Merge multiple decK files into one", + Long: `Merge multiple decK files into one. The files can be either json or yaml format. Will merge all top-level arrays by simply concatenating them. Any other keys will be copied. The files will be processed in the order diff --git a/cmd/patch.go b/cmd/patch.go index 83ade6db7..e32f58380 100644 --- a/cmd/patch.go +++ b/cmd/patch.go @@ -109,8 +109,8 @@ func executePatch(cmd *cobra.Command, args []string) error { func newPatchCmd() *cobra.Command { patchCmd := &cobra.Command{ Use: "patch [flags] [...patch-files]", - Short: "Applies patches on top of a decK file", - Long: `Applies patches on top of a decK file. + Short: "Apply patches on top of a decK file", + Long: `Apply patches on top of a decK file. The input file will be read, the patches will be applied, and if successful, written to the output file. The patches can be specified by a '--selector' and one or more diff --git a/cmd/removetags.go b/cmd/removetags.go index 742b65a0d..f65f7de64 100644 --- a/cmd/removetags.go +++ b/cmd/removetags.go @@ -77,8 +77,8 @@ func executeRemoveTags(cmd *cobra.Command, tagsToRemove []string) error { func newRemoveTagsCmd() *cobra.Command { removeTagsCmd := &cobra.Command{ Use: "remove-tags [flags] tag [...tag]", - Short: "Removes tags from objects in a decK file", - Long: `Removes tags from objects in a decK file. + Short: "Remove tags from objects in a decK file", + Long: `Remove tags from objects in a decK file. The listed tags are removed from all objects that match the selector expressions. If no selectors are given, all Kong entities will be selected.`,