From 4af19e9bc040822082606d3cd65591ef9239ca0b Mon Sep 17 00:00:00 2001 From: Zaq? Wiedmann Date: Sat, 21 Apr 2018 02:07:20 -0700 Subject: [PATCH] [#137] issue deprecation notice in `lab merge-request` --- cmd/mergeRequest.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/mergeRequest.go b/cmd/mergeRequest.go index 10f99abf..6903a238 100644 --- a/cmd/mergeRequest.go +++ b/cmd/mergeRequest.go @@ -1,6 +1,7 @@ package cmd import ( + "fmt" "github.com/spf13/cobra" ) @@ -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() {