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
ab55f9da
Commit
ab55f9da
authored
Jun 28, 2018
by
antirez
Browse files
Make CLIENT HELP output nicer to the eyes.
parent
75f1a7bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
ab55f9da
...
@@ -1566,18 +1566,18 @@ void clientCommand(client *c) {
...
@@ -1566,18 +1566,18 @@ void clientCommand(client *c) {
if
(
c
->
argc
==
2
&&
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"help"
))
{
if
(
c
->
argc
==
2
&&
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"help"
))
{
const
char
*
help
[]
=
{
const
char
*
help
[]
=
{
"id -- Return the ID of the current connection."
,
"id
-- Return the ID of the current connection."
,
"getname -- Return the name of the current connection."
,
"getname
-- Return the name of the current connection."
,
"kill <ip:port> -- Kill connection made from <ip:port>."
,
"kill <ip:port>
-- Kill connection made from <ip:port>."
,
"kill <option> <value> [option value ...] -- Kill connections. Options are:"
,
"kill <option> <value> [option value ...] -- Kill connections. Options are:"
,
" addr <ip:port> -- Kill connection made from <ip:port>
.
"
,
" addr <ip:port>
-- Kill connection made from <ip:port>"
,
" type (normal|master|slave|pubsub) -- Kill connections by type."
,
" type (normal|master|slave|pubsub)
-- Kill connections by type."
,
" skipme (yes|no) -- Skip killing current connection (default: yes)."
,
" skipme (yes|no)
-- Skip killing current connection (default: yes)."
,
"list -- Return information about client connections."
,
"list
-- Return information about client connections."
,
"pause <timeout> -- Suspend all Redis clients for <timout> milliseconds."
,
"pause <timeout>
-- Suspend all Redis clients for <timout> milliseconds."
,
"reply (on|off|skip) -- Control the replies sent to the current connection."
,
"reply (on|off|skip)
-- Control the replies sent to the current connection."
,
"setname <name> -- Assign the name <name> to the current connection."
,
"setname <name>
-- Assign the name <name> to the current connection."
,
"unblock -- Unblock the specified blocked client
by pause or error
."
,
"unblock
-- Unblock the specified blocked client."
,
NULL
NULL
};
};
addReplyHelp
(
c
,
help
);
addReplyHelp
(
c
,
help
);
...
...
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