From 89662d9c899fca0be29184283e37de791e706fd9 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Thu, 16 Nov 2017 18:19:07 -0700 Subject: [PATCH] update FSET args --- core/commands.json | 7 ++++++- core/commands_gen.go | 30 +++++++++++++++++++----------- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/core/commands.json b/core/commands.json index 2c8789cb..3d531ceb 100644 --- a/core/commands.json +++ b/core/commands.json @@ -182,10 +182,15 @@ "type": [], "optional": true }, + { + "name": ["field","value"], + "type": ["string","double"] + }, { "name": ["field","value"], "type": ["string","double"], - "multiple": true + "multiple": true, + "optional": true } ], "since": "1.0.0", diff --git a/core/commands_gen.go b/core/commands_gen.go index 7ab58adf..111e7743 100644 --- a/core/commands_gen.go +++ b/core/commands_gen.go @@ -331,7 +331,7 @@ var commandsJSON = `{ "group": "keys" }, "FSET": { - "summary": "Set the value for a single field of an id", + "summary": "Set the value for one or more fields of an id", "complexity": "O(1)", "arguments":[ { @@ -343,12 +343,20 @@ var commandsJSON = `{ "type": "string" }, { - "name": "field", - "type": "string" + "command": "XX", + "name": [], + "type": [], + "optional": true }, { - "name": "value", - "type": "double" + "name": ["field","value"], + "type": ["string","double"] + }, + { + "name": ["field","value"], + "type": ["string","double"], + "multiple": true, + "optional": true } ], "since": "1.0.0", @@ -665,12 +673,12 @@ var commandsJSON = `{ "type": "pattern", "optional": true }, - { - "command": "DISTANCE", - "name": [], - "type": [], - "optional": true - }, + { + "command": "DISTANCE", + "name": [], + "type": [], + "optional": true + }, { "command": "WHERE", "name": ["field","min","max"],