etcdctl/ctlv3/command/role_command.go
func NewRoleCommand() *cobra.Command {
	ac := &cobra.Command{
		Use:   "role <subcommand>",
		Short: "Role related commands",
	}

	ac.AddCommand(newRoleAddCommand())
	ac.AddCommand(newRoleDeleteCommand())
	ac.AddCommand(newRoleGetCommand())
	ac.AddCommand(newRoleListCommand())
	ac.AddCommand(newRoleGrantPermissionCommand())
	ac.AddCommand(newRoleRevokePermissionCommand())

	return ac
}
func NewRoleCommand() *cobra.Command {
	ac := &cobra.Command{
		Use:   "role <subcommand>",
		Short: "Role related commands",
	}

	ac.AddCommand(newRoleAddCommand())
	ac.AddCommand(newRoleDeleteCommand())
	ac.AddCommand(newRoleGetCommand())
	ac.AddCommand(newRoleListCommand())
	ac.AddCommand(newRoleGrantPermissionCommand())
	ac.AddCommand(newRoleRevokePermissionCommand())

	return ac
}
func NewRoleCommand ( ) * cobra . Command { ac := & cobra . Command { Use : " " , Short : " " , } ac . AddCommand ( newRoleAddCommand ( ) ) ac . AddCommand ( newRoleDeleteCommand ( ) ) ac . AddCommand ( newRoleGetCommand ( ) ) ac . AddCommand ( newRoleListCommand ( ) ) ac . AddCommand ( newRoleGrantPermissionCommand ( ) ) ac . AddCommand ( newRoleRevokePermissionCommand ( ) ) return ac }
// NewRoleCommand returns the cobra command for "role".
NewRoleCommand returns the cobra command for role .