Skip to content

Commit 2628980

Browse files
committed
fix: IFEQ, LIB-NAME, LIB-VER, LIBRARYNAME tokens in the command builder
Signed-off-by: Rueian <rueiancsie@gmail.com>
1 parent b47888a commit 2628980

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

hack/cmds/commands.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -725,9 +725,9 @@
725725
"optional": true
726726
},
727727
{
728-
"command": "MAXAGE",
729728
"name": "maxage",
730729
"type": "integer",
730+
"token": "MAXAGE",
731731
"optional": true
732732
}
733733
],

hack/cmds/gen.go

+3
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ func (n *node) GoStructs() (out []goStruct) {
216216
if len(n.Arg.Command) != 0 {
217217
s.BuildDef.Command = strings.Split(n.Arg.Command, " ")
218218
}
219+
if len(n.Arg.Token) != 0 {
220+
s.BuildDef.Command = strings.Split(n.Arg.Token, " ")
221+
}
219222

220223
switch nm := n.Arg.Name.(type) {
221224
case string:

internal/cmds/cmds.go

+2
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ func (c Completed) SetSlot(key string) Completed {
185185
return c
186186
}
187187

188+
var Slot = slot
189+
188190
// Cacheable represents a completed Redis command which supports server-assisted client side caching,
189191
// and it should be created by the Cache() of command builder.
190192
type Cacheable Completed

internal/cmds/gen_cluster.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/cmds/gen_connection.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/cmds/gen_string.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/cmds/gen_triggers_and_functions.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)