package redis

import 

type ACLCmdable interface {
	ACLDryRun(ctx context.Context, username string, command ...interface{}) *StringCmd

	ACLLog(ctx context.Context, count int64) *ACLLogCmd
	ACLLogReset(ctx context.Context) *StatusCmd

	ACLGenPass(ctx context.Context, bit int) *StringCmd

	ACLSetUser(ctx context.Context, username string, rules ...string) *StatusCmd
	ACLDelUser(ctx context.Context, username string) *IntCmd
	ACLUsers(ctx context.Context) *StringSliceCmd
	ACLWhoAmI(ctx context.Context) *StringCmd
	ACLList(ctx context.Context) *StringSliceCmd

	ACLCat(ctx context.Context) *StringSliceCmd
	ACLCatArgs(ctx context.Context, options *ACLCatArgs) *StringSliceCmd
}

type ACLCatArgs struct {
	Category string
}

func ( cmdable) ( context.Context,  string,  ...interface{}) *StringCmd {
	 := make([]interface{}, 0, 3+len())
	 = append(, "acl", "dryrun", )
	 = append(, ...)
	 := NewStringCmd(, ...)
	_ = (, )
	return 
}

func ( cmdable) ( context.Context,  int64) *ACLLogCmd {
	 := make([]interface{}, 0, 3)
	 = append(, "acl", "log")
	if  > 0 {
		 = append(, )
	}
	 := NewACLLogCmd(, ...)
	_ = (, )
	return 
}

func ( cmdable) ( context.Context) *StatusCmd {
	 := NewStatusCmd(, "acl", "log", "reset")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context,  string) *IntCmd {
	 := NewIntCmd(, "acl", "deluser", )
	_ = (, )
	return 
}

func ( cmdable) ( context.Context,  string,  ...string) *StatusCmd {
	 := make([]interface{}, 3+len())
	[0] = "acl"
	[1] = "setuser"
	[2] = 
	for ,  := range  {
		[+3] = 
	}
	 := NewStatusCmd(, ...)
	_ = (, )
	return 
}

func ( cmdable) ( context.Context,  int) *StringCmd {
	 := make([]interface{}, 0, 3)
	 = append(, "acl", "genpass")
	if  > 0 {
		 = append(, )
	}
	 := NewStringCmd(, ...)
	_ = (, )
	return 
}

func ( cmdable) ( context.Context) *StringSliceCmd {
	 := NewStringSliceCmd(, "acl", "users")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context) *StringCmd {
	 := NewStringCmd(, "acl", "whoami")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context) *StringSliceCmd {
	 := NewStringSliceCmd(, "acl", "list")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context) *StringSliceCmd {
	 := NewStringSliceCmd(, "acl", "cat")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context,  *ACLCatArgs) *StringSliceCmd {
	// if there is a category passed, build new cmd, if there isn't - use the ACLCat method
	if  != nil && .Category != "" {
		 := NewStringSliceCmd(, "acl", "cat", .Category)
		_ = (, )
		return 
	}

	return .ACLCat()
}