Skip to content

Commit

Permalink
[#137] issue deprecation notice in lab merge-request
Browse files Browse the repository at this point in the history
  • Loading branch information
zaquestion committed Apr 21, 2018
1 parent eb6be9f commit 4af19e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/mergeRequest.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cmd

import (
"fmt"
"github.com/spf13/cobra"
)

Expand All @@ -10,7 +11,10 @@ var mergeRequestCmd = &cobra.Command{
Short: mrCreateCmd.Short,
Long: mrCreateCmd.Long,
Args: mrCreateCmd.Args,
Run: runMRCreate,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("[WARN] `lab merge-request` will be deprecated by `lab mr create` before v1.0 ")
runMRCreate(cmd, args)
},
}

func init() {
Expand Down

0 comments on commit 4af19e9

Please sign in to comment.