Skip to content

Commit c586d3c

Browse files
px86rueian
authored andcommitted
feat add IFEQ option to SET command (#27)
* fix #25: Add `IFEQ` option to `SET` command Signed-off-by: Pushkar Raj <[email protected]> * Removed `block` argument per PR comment Signed-off-by: Pushkar Raj <[email protected]> --------- Signed-off-by: Pushkar Raj <[email protected]> Signed-off-by: Rueian <[email protected]>
1 parent bd17103 commit c586d3c

File tree

3 files changed

+90
-4
lines changed

3 files changed

+90
-4
lines changed

Diff for: hack/cmds/commands.json

+17-4
Original file line numberDiff line numberDiff line change
@@ -5050,10 +5050,23 @@
50505050
},
50515051
{
50525052
"name": "condition",
5053-
"type": "enum",
5054-
"enum": [
5055-
"NX",
5056-
"XX"
5053+
"type": "oneof",
5054+
"arguments": [
5055+
{
5056+
"name": "nx",
5057+
"type": "pure-token",
5058+
"token": "NX"
5059+
},
5060+
{
5061+
"name": "xx",
5062+
"type": "pure-token",
5063+
"token": "XX"
5064+
},
5065+
{
5066+
"name": "ifeq",
5067+
"type": "string",
5068+
"token": "IFEQ"
5069+
}
50575070
],
50585071
"optional": true
50595072
},

Diff for: internal/cmds/gen_string.go

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

Diff for: internal/cmds/gen_string_test.go

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

0 commit comments

Comments
 (0)