mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: print messages for successful auth operations
This commit lets etcdctl v3 follow the manner of etcdctl v2.
This commit is contained in:
parent
59bb65182a
commit
2ad9b5692f
@ -52,4 +52,6 @@ func authEnableCommandFunc(cmd *cobra.Command, args []string) {
|
||||
if err != nil {
|
||||
ExitWithError(ExitError, err)
|
||||
}
|
||||
|
||||
fmt.Println("Authentication Enabled")
|
||||
}
|
||||
|
@ -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])
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user