From 2ad9b5692f1a8afd64818fa6366c94a1e8f0f81b Mon Sep 17 00:00:00 2001 From: Hitoshi Mitake Date: Thu, 31 Mar 2016 13:44:15 +0900 Subject: [PATCH] etcdctl: print messages for successful auth operations This commit lets etcdctl v3 follow the manner of etcdctl v2. --- etcdctl/ctlv3/command/auth_command.go | 2 ++ etcdctl/ctlv3/command/user_command.go | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/etcdctl/ctlv3/command/auth_command.go b/etcdctl/ctlv3/command/auth_command.go index cf7d21f1b..6b059a427 100644 --- a/etcdctl/ctlv3/command/auth_command.go +++ b/etcdctl/ctlv3/command/auth_command.go @@ -52,4 +52,6 @@ func authEnableCommandFunc(cmd *cobra.Command, args []string) { if err != nil { ExitWithError(ExitError, err) } + + fmt.Println("Authentication Enabled") } diff --git a/etcdctl/ctlv3/command/user_command.go b/etcdctl/ctlv3/command/user_command.go index db63b719d..b9a1df467 100644 --- a/etcdctl/ctlv3/command/user_command.go +++ b/etcdctl/ctlv3/command/user_command.go @@ -97,6 +97,8 @@ func userAddCommandFunc(cmd *cobra.Command, args []string) { if err != nil { ExitWithError(ExitError, err) } + + fmt.Printf("User %s created\n", args[0]) } // userDeleteCommandFunc executes the "user delete" command. @@ -109,4 +111,6 @@ func userDeleteCommandFunc(cmd *cobra.Command, args []string) { if err != nil { ExitWithError(ExitError, err) } + + fmt.Printf("User %s deleted\n", args[0]) }