Update json command files so they only include syntax related information (#10398)

The command json documents should just include information about the "arguments" and the "outputs".
I removed all of the 'functional wording' so it's clear.
This commit is contained in:
Madelyn Olson 2022-04-05 00:36:06 -07:00 committed by GitHub
parent ae020e3d56
commit 4ffcec29af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 16 additions and 55 deletions

View File

@ -635,7 +635,7 @@ struct redisCommandArg CLUSTER_SLAVES_Args[] = {
/* CLUSTER SLOTS history */
commandHistory CLUSTER_SLOTS_History[] = {
{"4.0.0","Added node IDs."},
{"7.0.0","Added additional networking metadata and added support for hostnames and unknown endpoints."},
{"7.0.0","Added additional networking metadata field."},
{0}
};
@ -883,7 +883,6 @@ struct redisCommandArg CLIENT_NO_EVICT_Args[] = {
/* CLIENT PAUSE history */
commandHistory CLIENT_PAUSE_History[] = {
{"3.2.10","Client pause prevents client pause and key eviction as well."},
{"6.2.0","`CLIENT PAUSE WRITE` mode added along with the `mode` option."},
{0}
};
@ -1564,10 +1563,7 @@ NULL
/********** RENAME ********************/
/* RENAME history */
commandHistory RENAME_History[] = {
{"3.2.0","The command no longer returns an error when source and destination names are the same."},
{0}
};
#define RENAME_History NULL
/* RENAME tips */
#define RENAME_tips NULL
@ -3178,10 +3174,7 @@ struct redisCommandArg SSUBSCRIBE_Args[] = {
/********** SUBSCRIBE ********************/
/* SUBSCRIBE history */
commandHistory SUBSCRIBE_History[] = {
{"6.2.0","`RESET` can be called to exit subscribed state."},
{0}
};
#define SUBSCRIBE_History NULL
/* SUBSCRIBE tips */
#define SUBSCRIBE_tips NULL
@ -3536,7 +3529,7 @@ struct redisCommandArg SCRIPT_EXISTS_Args[] = {
/* SCRIPT FLUSH history */
commandHistory SCRIPT_FLUSH_History[] = {
{"6.2.0","Added the `ASYNC` and `SYNC` flushing mode modifiers, as well as the **lazyfree-lazy-user-flush** configuration directive."},
{"6.2.0","Added the `ASYNC` and `SYNC` flushing mode modifiers."},
{0}
};
@ -4417,7 +4410,7 @@ struct redisCommandArg FAILOVER_Args[] = {
/* FLUSHALL history */
commandHistory FLUSHALL_History[] = {
{"4.0.0","Added the `ASYNC` flushing mode modifier."},
{"6.2.0","Added the `SYNC` flushing mode modifier and the **lazyfree-lazy-user-flush** configuration directive."},
{"6.2.0","Added the `SYNC` flushing mode modifier."},
{0}
};
@ -4446,7 +4439,7 @@ struct redisCommandArg FLUSHALL_Args[] = {
/* FLUSHDB history */
commandHistory FLUSHDB_History[] = {
{"4.0.0","Added the `ASYNC` flushing mode modifier."},
{"6.2.0","Added the `SYNC` flushing mode modifier and the **lazyfree-lazy-user-flush** configuration directive."},
{"6.2.0","Added the `SYNC` flushing mode modifier."},
{0}
};
@ -4837,12 +4830,7 @@ struct redisCommand MODULE_Subcommands[] = {
/********** MONITOR ********************/
/* MONITOR history */
commandHistory MONITOR_History[] = {
{"6.0.0","`AUTH` excluded from the command's output."},
{"6.2.0","`RESET` can be called to exit monitor mode."},
{"6.2.4","`AUTH`, `HELLO`, `EVAL`, `EVAL_RO`, `EVALSHA` and `EVALSHA_RO` included in the command's output."},
{0}
};
#define MONITOR_History NULL
/* MONITOR tips */
#define MONITOR_tips NULL
@ -4913,7 +4901,7 @@ struct redisCommandArg REPLICAOF_Args[] = {
/* SHUTDOWN history */
commandHistory SHUTDOWN_History[] = {
{"7.0.0","Added the `NOW`, `FORCE` and `ABORT` modifiers. Introduced waiting for lagging replicas before exiting."},
{"7.0.0","Added the `NOW`, `FORCE` and `ABORT` modifiers."},
{0}
};

View File

@ -8,10 +8,6 @@
"container": "CLIENT",
"function": "clientCommand",
"history": [
[
"3.2.10",
"Client pause prevents client pause and key eviction as well."
],
[
"6.2.0",
"`CLIENT PAUSE WRITE` mode added along with the `mode` option."

View File

@ -19,7 +19,7 @@
],
[
"7.0.0",
"Added additional networking metadata and added support for hostnames and unknown endpoints."
"Added additional networking metadata field."
]
],
"command_flags": [

View File

@ -13,7 +13,7 @@
],
[
"6.2.0",
"Added the `SYNC` flushing mode modifier and the **lazyfree-lazy-user-flush** configuration directive."
"Added the `SYNC` flushing mode modifier."
]
],
"command_flags": [

View File

@ -13,7 +13,7 @@
],
[
"6.2.0",
"Added the `SYNC` flushing mode modifier and the **lazyfree-lazy-user-flush** configuration directive."
"Added the `SYNC` flushing mode modifier."
]
],
"command_flags": [

View File

@ -5,20 +5,7 @@
"since": "1.0.0",
"arity": 1,
"function": "monitorCommand",
"history": [
[
"6.0.0",
"`AUTH` excluded from the command's output."
],
[
"6.2.0",
"`RESET` can be called to exit monitor mode."
],
[
"6.2.4",
"`AUTH`, `HELLO`, `EVAL`, `EVAL_RO`, `EVALSHA` and `EVALSHA_RO` included in the command's output."
]
],
"history": [],
"command_flags": [
"ADMIN",
"NOSCRIPT",

View File

@ -6,12 +6,7 @@
"since": "1.0.0",
"arity": 3,
"function": "renameCommand",
"history": [
[
"3.2.0",
"The command no longer returns an error when source and destination names are the same."
]
],
"history": [],
"command_flags": [
"WRITE"
],

View File

@ -10,7 +10,7 @@
"history": [
[
"6.2.0",
"Added the `ASYNC` and `SYNC` flushing mode modifiers, as well as the **lazyfree-lazy-user-flush** configuration directive."
"Added the `ASYNC` and `SYNC` flushing mode modifiers."
]
],
"command_flags": [

View File

@ -9,7 +9,7 @@
"history": [
[
"7.0.0",
"Added the `NOW`, `FORCE` and `ABORT` modifiers. Introduced waiting for lagging replicas before exiting."
"Added the `NOW`, `FORCE` and `ABORT` modifiers."
]
],
"command_flags": [

View File

@ -6,12 +6,7 @@
"since": "2.0.0",
"arity": -2,
"function": "subscribeCommand",
"history": [
[
"6.2.0",
"`RESET` can be called to exit subscribed state."
]
],
"history": [],
"command_flags": [
"PUBSUB",
"NOSCRIPT",