From 0d4167a29678aa9048652695a5e339e6ba805de8 Mon Sep 17 00:00:00 2001 From: Jocelyn FACCHINI Date: Sat, 23 Mar 2019 18:03:39 +0000 Subject: 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(-) (limited to 'commands') diff --git a/commands/comment.go b/commands/comment.go index 3d5fe4eb..eff91208 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 9bb24086..3e153009 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 ea57c282..efe48b5e 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 f9b7542b..66a9de7a 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 e95c77d0..385dbdc9 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 12180321..ef5d4991 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 5313e366..d84d4048 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, -- cgit