Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
57ac35e5
Commit
57ac35e5
authored
Sep 25, 2018
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document JSON support in the CLI.
parent
5687c10e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
18 deletions
+22
-18
cli_cmds.h
include/tbl/cli_cmds.h
+22
-18
No files found.
include/tbl/cli_cmds.h
View file @
57ac35e5
...
...
@@ -49,10 +49,11 @@ CLI_CMD(BAN,
CLI_CMD
(
BAN_LIST
,
"ban.list"
,
"ban.list"
,
"ban.list
[-j]
"
,
"List the active bans."
,
" The output format is:
\n\n
"
" Unless ``-j`` is specified (for JSON output), "
" the output format is:
\n\n
"
" * Time the ban was issued.
\n\n
"
" * Objects referencing this ban.
\n\n
"
" * ``C`` if ban is completed = no further testing against it.
\n\n
"
...
...
@@ -102,9 +103,9 @@ CLI_CMD(VCL_DISCARD,
CLI_CMD
(
VCL_LIST
,
"vcl.list"
,
"vcl.list"
,
"vcl.list
[-j]
"
,
"List all loaded configuration."
,
""
,
"
``-j`` specifies JSON output.
"
,
0
,
0
)
...
...
@@ -134,12 +135,14 @@ CLI_CMD(VCL_LABEL,
CLI_CMD
(
PARAM_SHOW
,
"param.show"
,
"param.show [-l] [<param>|changed]"
,
"param.show [-l
|-j
] [<param>|changed]"
,
"Show parameters and their values."
,
"The long form with ``-l`` shows additional information, including"
" documentation and minimum, maximum and default values, if defined"
" for the parameter. If a parameter is specified with ``<param>``,"
" for the parameter. JSON output is specified with ``-j``, in which"
" the information for the long form is included; only one of ``-l`` or"
" ``-j`` is permitted. If a parameter is specified with ``<param>``,"
" show only that parameter. If ``changed`` is specified, show only"
" those parameters whose values differ from their defaults."
,
0
,
2
...
...
@@ -171,17 +174,17 @@ CLI_CMD(SERVER_START,
CLI_CMD
(
PING
,
"ping"
,
"ping [<timestamp>]"
,
"ping [
-j] [
<timestamp>]"
,
"Keep connection alive."
,
""
,
"
The response is formatted as JSON if ``-j`` is specified.
"
,
0
,
1
)
CLI_CMD
(
HELP
,
"help"
,
"help [<command>]"
,
"help [
-j] [
<command>]"
,
"Show command/protocol help."
,
""
,
"
``-j`` specifies JSON output.
"
,
0
,
1
)
...
...
@@ -195,9 +198,9 @@ CLI_CMD(QUIT,
CLI_CMD
(
SERVER_STATUS
,
"status"
,
"status"
,
"status
[-j]
"
,
"Check status of Varnish cache process."
,
""
,
"
``-j`` specifies JSON output.
"
,
0
,
0
)
...
...
@@ -219,9 +222,10 @@ CLI_CMD(AUTH,
CLI_CMD
(
PANIC_SHOW
,
"panic.show"
,
"panic.show"
,
"panic.show
[-j]
"
,
"Return the last panic, if any."
,
""
,
"``-j`` specifies JSON output -- the panic message is returned as an"
" unstructured JSON string."
,
0
,
0
)
...
...
@@ -244,9 +248,9 @@ CLI_CMD(DEBUG_LISTEN_ADDRESS,
CLI_CMD
(
BACKEND_LIST
,
"backend.list"
,
"backend.list [-p] [<backend_pattern>]"
,
"backend.list [-
j] [-
p] [<backend_pattern>]"
,
"List backends. -p also shows probe status."
,
""
,
"
``-j`` specifies JSON output.
"
,
0
,
2
)
...
...
@@ -320,9 +324,9 @@ CLI_CMD(DEBUG_PERSISTENT,
CLI_CMD
(
STORAGE_LIST
,
"storage.list"
,
"storage.list"
,
"storage.list
[-j]
"
,
"List storage devices."
,
""
,
"
``-j`` specifies JSON output.
"
,
0
,
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