From 0d4167a29678aa9048652695a5e339e6ba805de8 Mon Sep 17 00:00:00 2001 From: Jocelyn FACCHINI Date: Sat, 23 Mar 2019 18:03:39 +0000 Subject: [PATCH] Renamed user id to user-id and metioned bug for some commands --- commands/comment.go | 2 +- commands/comment_add.go | 2 +- commands/select.go | 10 ++++------ commands/title.go | 2 +- commands/title_edit.go | 2 +- commands/user.go | 2 +- commands/user_adopt.go | 2 +- 7 files changed, 10 insertions(+), 12 deletions(-) diff --git a/commands/comment.go b/commands/comment.go index 3d5fe4eb2319eb77ebfdfa95e5fbdf1f973ed989..eff912088d5d798662bc4ad1452f97e5268b9dbb 100644 --- a/commands/comment.go +++ b/commands/comment.go @@ -46,7 +46,7 @@ func commentsTextOutput(comments []bug.Comment) { var commentCmd = &cobra.Command{ Use: "comment []", - Short: "Display or add comments.", + Short: "Display or add comments to a bug.", PreRunE: loadRepo, RunE: runComment, } diff --git a/commands/comment_add.go b/commands/comment_add.go index 9bb2408614452df3319f302121e63dd5cdf2563a..3e153009be6dd3d128df460a3718e03381dd676f 100644 --- a/commands/comment_add.go +++ b/commands/comment_add.go @@ -56,7 +56,7 @@ func runCommentAdd(cmd *cobra.Command, args []string) error { var commentAddCmd = &cobra.Command{ Use: "add []", - Short: "Add a new comment.", + Short: "Add a new comment to a bug.", PreRunE: loadRepo, RunE: runCommentAdd, } diff --git a/commands/select.go b/commands/select.go index ea57c282df021cdaec95e0dde2ec89c154dd609a..efe48b5e09ef646ff0dcb4cca3842e46bba072f8 100644 --- a/commands/select.go +++ b/commands/select.go @@ -48,12 +48,10 @@ git bug status `, Long: `Select a bug for implicit use in future commands. -This command allows you to omit any bug argument for the following commands: - - git bug comment - - git bug label - - git bug show - - git bug status - - git bug title +This command allows you to omit any bug argument, for example: + git bug show +instead of + git bug show 2f153ca The complementary command is "git bug deselect" performing the opposite operation. `, diff --git a/commands/title.go b/commands/title.go index f9b7542bd7775e9d0c0ab4b824a1120def677f0d..66a9de7ae75b7d6b58c78db96f5232b975221c6f 100644 --- a/commands/title.go +++ b/commands/title.go @@ -31,7 +31,7 @@ func runTitle(cmd *cobra.Command, args []string) error { var titleCmd = &cobra.Command{ Use: "title []", - Short: "Display or change a title.", + Short: "Display or change a title of a bug.", PreRunE: loadRepo, RunE: runTitle, } diff --git a/commands/title_edit.go b/commands/title_edit.go index e95c77d03604947c084fb4dafd9f5bcd3238987f..385dbdc94f57113037765528e9e4c6ef8d655b5c 100644 --- a/commands/title_edit.go +++ b/commands/title_edit.go @@ -54,7 +54,7 @@ func runTitleEdit(cmd *cobra.Command, args []string) error { var titleEditCmd = &cobra.Command{ Use: "edit []", - Short: "Edit a title.", + Short: "Edit a title of a bug.", PreRunE: loadRepo, RunE: runTitleEdit, } diff --git a/commands/user.go b/commands/user.go index 1218032110b499ca8d8afdbc8ecc80d62c371991..ef5d49917675a5255be9ee68b0399cc5e8e0dc57 100644 --- a/commands/user.go +++ b/commands/user.go @@ -49,7 +49,7 @@ func runUser(cmd *cobra.Command, args []string) error { } var userCmd = &cobra.Command{ - Use: "user []", + Use: "user []", Short: "Display or change the user identity.", PreRunE: loadRepo, RunE: runUser, diff --git a/commands/user_adopt.go b/commands/user_adopt.go index 5313e366696bfc716dae4d25747120cfd32645d8..d84d404823aae3473d90e97d72150109474eac95 100644 --- a/commands/user_adopt.go +++ b/commands/user_adopt.go @@ -35,7 +35,7 @@ func runUserAdopt(cmd *cobra.Command, args []string) error { } var userAdoptCmd = &cobra.Command{ - Use: "adopt ", + Use: "adopt ", Short: "Adopt an existing identity as your own.", PreRunE: loadRepo, RunE: runUserAdopt,