etcdctl: print messages for successful auth operations

This commit lets etcdctl v3 follow the manner of etcdctl v2.
This commit is contained in:
Hitoshi Mitake 2016-03-31 13:44:15 +09:00
parent 59bb65182a
commit 2ad9b5692f
2 changed files with 6 additions and 0 deletions

View File

@ -52,4 +52,6 @@ func authEnableCommandFunc(cmd *cobra.Command, args []string) {
if err != nil {
ExitWithError(ExitError, err)
}
fmt.Println("Authentication Enabled")
}

View File

@ -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])
}