mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl/ctlv3: minor clean ups
- Fix typo - Improve command ordering (elect should be below lock) - Update migrate command description
This commit is contained in:
@@ -51,7 +51,7 @@ var (
|
||||
func NewMigrateCommand() *cobra.Command {
|
||||
mc := &cobra.Command{
|
||||
Use: "migrate",
|
||||
Short: "migrate",
|
||||
Short: "migrates keys in a v2 store to a mvcc store",
|
||||
Run: migrateCommandFunc,
|
||||
}
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@ func NewRoleCommand() *cobra.Command {
|
||||
ac.AddCommand(newRoleDeleteCommand())
|
||||
ac.AddCommand(newRoleGetCommand())
|
||||
ac.AddCommand(newRoleListCommand())
|
||||
ac.AddCommand(newRoleRevokePermissionCommand())
|
||||
ac.AddCommand(newRoleGrantPermissionCommand())
|
||||
ac.AddCommand(newRoleRevokePermissionCommand())
|
||||
|
||||
return ac
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ func newUserChangePasswordCommand() *cobra.Command {
|
||||
Run: userChangePasswordCommandFunc,
|
||||
}
|
||||
|
||||
cmd.Flags().BoolVar(&passwordInteractive, "interactive", true, "read password from stdin instead of interactive terminal")
|
||||
cmd.Flags().BoolVar(&passwordInteractive, "interactive", true, "if true, read password from stdin instead of interactive terminal")
|
||||
|
||||
return &cmd
|
||||
}
|
||||
@@ -105,7 +105,7 @@ func newUserGrantRoleCommand() *cobra.Command {
|
||||
func newUserRevokeRoleCommand() *cobra.Command {
|
||||
return &cobra.Command{
|
||||
Use: "revoke-role <user name> <role name>",
|
||||
Short: "revoke a role from from a user",
|
||||
Short: "revoke a role from a user",
|
||||
Run: userRevokeRoleCommandFunc,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,8 +76,8 @@ func init() {
|
||||
command.NewMakeMirrorCommand(),
|
||||
command.NewMigrateCommand(),
|
||||
command.NewLockCommand(),
|
||||
command.NewAuthCommand(),
|
||||
command.NewElectCommand(),
|
||||
command.NewAuthCommand(),
|
||||
command.NewUserCommand(),
|
||||
command.NewRoleCommand(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user