Skip to content

Commit

Permalink
(mr/issue show) update command descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
zaquestion committed Dec 18, 2017
1 parent cb699c9 commit ab6ad07
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions cmd/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

var issueCmd = &cobra.Command{
Use: "issue",
Short: issueShowCmd.Short,
Long: issueShowCmd.Long,
Short: `Describe, list, and create issues`,
Long: ``,
Run: func(cmd *cobra.Command, args []string) {
if list, _ := cmd.Flags().GetBool("list"); list {
issueListCmd.Run(cmd, args)
Expand Down
9 changes: 5 additions & 4 deletions cmd/issueShow.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ import (
)

var issueShowCmd = &cobra.Command{
Use: "show [remote]",
Aliases: []string{"get", "s"},
Short: "describe an issue",
Long: ``,
Use: "show [remote]",
Aliases: []string{"get"},
ArgAliases: []string{"s"},
Short: "Describe an issue",
Long: ``,
Run: func(cmd *cobra.Command, args []string) {
remote, issueNum, err := parseArgsRemote(args)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions cmd/mr.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
// mrCmd represents the mr command
var mrCmd = &cobra.Command{
Use: "mr",
Short: mrShowCmd.Short,
Long: mrShowCmd.Long,
Short: `Describe, list, and create merge requests`,
Long: ``,
Run: func(cmd *cobra.Command, args []string) {
if list, _ := cmd.Flags().GetBool("list"); list {
listCmd.Run(cmd, args)
Expand Down
9 changes: 5 additions & 4 deletions cmd/mrShow.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ import (
)

var mrShowCmd = &cobra.Command{
Use: "show [remote]",
Aliases: []string{"get", "s"},
Short: "describe a merge request",
Long: ``,
Use: "show [remote]",
Aliases: []string{"get"},
ArgAliases: []string{"s"},
Short: "Describe a merge request",
Long: ``,
Run: func(cmd *cobra.Command, args []string) {
remote, mrNum, err := parseArgsRemote(args)
if err != nil {
Expand Down
1 change: 0 additions & 1 deletion cmd/snippet.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ var snippetCmd = &cobra.Command{
Short: snippetCreateCmd.Short,
Long: snippetCreateCmd.Long,
Run: func(cmd *cobra.Command, args []string) {

if list, _ := cmd.Flags().GetBool("list"); list {
snippetListCmd.Run(cmd, args)
return
Expand Down

0 comments on commit ab6ad07

Please sign in to comment.