summaryrefslogtreecommitdiffstats
path: root/src/commands/command-info.json
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/commands/command-info.json213
1 files changed, 213 insertions, 0 deletions
diff --git a/src/commands/command-info.json b/src/commands/command-info.json
new file mode 100644
index 0000000..8c69060
--- /dev/null
+++ b/src/commands/command-info.json
@@ -0,0 +1,213 @@
+{
+ "INFO": {
+ "summary": "Returns information about one, multiple or all commands.",
+ "complexity": "O(N) where N is the number of commands to look up",
+ "group": "server",
+ "since": "2.8.13",
+ "arity": -2,
+ "container": "COMMAND",
+ "function": "commandInfoCommand",
+ "history": [
+ [
+ "7.0.0",
+ "Allowed to be called with no argument to get info on all commands."
+ ]
+ ],
+ "command_flags": [
+ "LOADING",
+ "STALE",
+ "SENTINEL"
+ ],
+ "acl_categories": [
+ "CONNECTION"
+ ],
+ "command_tips": [
+ "NONDETERMINISTIC_OUTPUT_ORDER"
+ ],
+ "arguments": [
+ {
+ "name": "command-name",
+ "type": "string",
+ "optional": true,
+ "multiple": true
+ }
+ ],
+ "reply_schema": {
+ "type": "array",
+ "items": {
+ "oneOf": [
+ {
+ "description": "command does not exist",
+ "type": "null"
+ },
+ {
+ "description": "command info array output",
+ "type": "array",
+ "minItems": 10,
+ "maxItems": 10,
+ "items": [
+ {
+ "description": "command name",
+ "type": "string"
+ },
+ {
+ "description": "command arity",
+ "type": "integer"
+ },
+ {
+ "description": "command flags",
+ "type": "array",
+ "items": {
+ "description": "command flag",
+ "type": "string"
+ }
+ },
+ {
+ "description": "command first key index",
+ "type": "integer"
+ },
+ {
+ "description": "command last key index",
+ "type": "integer"
+ },
+ {
+ "description": "command key step index",
+ "type": "integer"
+ },
+ {
+ "description": "command categories",
+ "type": "array",
+ "items": {
+ "description": "command category",
+ "type": "string"
+ }
+ },
+ {
+ "description": "command tips",
+ "type": "array",
+ "items": {
+ "description": "command tip",
+ "type": "string"
+ }
+ },
+ {
+ "description": "command key specs",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "notes": {
+ "type": "string"
+ },
+ "flags": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "begin_search": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "spec": {
+ "anyOf": [
+ {
+ "description": "unknown type, empty map",
+ "type": "object",
+ "additionalProperties": false
+ },
+ {
+ "description": "index type",
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "index": {
+ "type": "integer"
+ }
+ }
+ },
+ {
+ "description": "keyword type",
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "keyword": {
+ "type": "string"
+ },
+ "startfrom": {
+ "type": "integer"
+ }
+ }
+ }
+ ]
+ }
+ }
+ },
+ "find_keys": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "spec": {
+ "anyOf": [
+ {
+ "description": "unknown type",
+ "type": "object",
+ "additionalProperties": false
+ },
+ {
+ "description": "range type",
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "lastkey": {
+ "type": "integer"
+ },
+ "keystep": {
+ "type": "integer"
+ },
+ "limit": {
+ "type": "integer"
+ }
+ }
+ },
+ {
+ "description": "keynum type",
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "keynumidx": {
+ "type": "integer"
+ },
+ "firstkey": {
+ "type": "integer"
+ },
+ "keystep": {
+ "type": "integer"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "type": "array",
+ "description": "subcommands"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+}