Merge pull request #4918 from mitake/auth-user-messages

etcdctl: print messages for successful auth operations
This commit is contained in:
Xiang Li
2016-03-30 22:03:14 -07:00
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])
}