Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5d0c6b08
Unverified
Commit
5d0c6b08
authored
Nov 10, 2020
by
Itamar Haber
Committed by
GitHub
Nov 10, 2020
Browse files
Adds help for '--cluster-yes' (#8035)
parent
c09b5941
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
5d0c6b08
...
@@ -2390,6 +2390,15 @@ clusterManagerCommandDef clusterManagerCommands[] = {
...
@@ -2390,6 +2390,15 @@ clusterManagerCommandDef clusterManagerCommands[] = {
{
"help"
,
clusterManagerCommandHelp
,
0
,
NULL
,
NULL
}
{
"help"
,
clusterManagerCommandHelp
,
0
,
NULL
,
NULL
}
};
};
typedef
struct
clusterManagerOptionDef
{
char
*
name
;
char
*
desc
;
}
clusterManagerOptionDef
;
clusterManagerOptionDef
clusterManagerOptions
[]
=
{
{
"--cluster-yes"
,
"Automatic yes to cluster commands prompts"
}
};
static
void
getRDB
(
clusterManagerNode
*
node
);
static
void
getRDB
(
clusterManagerNode
*
node
);
static
void
createClusterManagerCommand
(
char
*
cmdname
,
int
argc
,
char
**
argv
)
{
static
void
createClusterManagerCommand
(
char
*
cmdname
,
int
argc
,
char
**
argv
)
{
...
@@ -6622,7 +6631,21 @@ static int clusterManagerCommandHelp(int argc, char **argv) {
...
@@ -6622,7 +6631,21 @@ static int clusterManagerCommandHelp(int argc, char **argv) {
}
}
fprintf
(
stderr
,
"
\n
For check, fix, reshard, del-node, set-timeout you "
fprintf
(
stderr
,
"
\n
For check, fix, reshard, del-node, set-timeout you "
"can specify the host and port of any working node in "
"can specify the host and port of any working node in "
"the cluster.
\n\n
"
);
"the cluster.
\n
"
);
int
options_count
=
sizeof
(
clusterManagerOptions
)
/
sizeof
(
clusterManagerOptionDef
);
i
=
0
;
fprintf
(
stderr
,
"
\n
Cluster Manager Options:
\n
"
);
for
(;
i
<
options_count
;
i
++
)
{
clusterManagerOptionDef
*
def
=
&
(
clusterManagerOptions
[
i
]);
int
namelen
=
strlen
(
def
->
name
),
padlen
=
padding
-
namelen
;
fprintf
(
stderr
,
" %s"
,
def
->
name
);
for
(
j
=
0
;
j
<
padlen
;
j
++
)
fprintf
(
stderr
,
" "
);
fprintf
(
stderr
,
"%s
\n
"
,
def
->
desc
);
}
fprintf
(
stderr
,
"
\n
"
);
return
0
;
return
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment