Skip to content

Commit

Permalink
feat add IFEQ option to SET command (#27)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
px86 authored and rueian committed Jan 24, 2025
1 parent 2ffb082 commit 9b154d3
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 4 deletions.
21 changes: 17 additions & 4 deletions hack/cmds/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -5050,10 +5050,23 @@
},
{
"name": "condition",
"type": "enum",
"enum": [
"NX",
"XX"
"type": "oneof",
"arguments": [
{
"name": "nx",
"type": "pure-token",
"token": "NX"
},
{
"name": "xx",
"type": "pure-token",
"token": "XX"
},
{
"name": "ifeq",
"type": "string",
"token": "IFEQ"
}
],
"optional": true
},
Expand Down
62 changes: 62 additions & 0 deletions internal/cmds/gen_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions internal/cmds/gen_string_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9b154d3

Please sign in to comment.