Skip to content
Permalink
Browse files

Doc-fixino for vcl.label

  • Loading branch information...
bsdphk committed Aug 14, 2019
1 parent 67ea0c8 commit d9ccdb7c628c6292c6c58cd1aed57a1e90e2f81d
Showing with 11 additions and 5 deletions.
  1. +5 −1 bin/varnishd/mgt/mgt_cli.c
  2. +3 −3 doc/sphinx/users-guide/vcl-built-in-subs.rst
  3. +3 −1 include/tbl/cli_cmds.h
@@ -690,14 +690,18 @@ void
mgt_DumpRstCli(void)
{
const struct cli_cmd_desc *cp;
const char *p;
int i, j;

qsort(cmds, ncmds, sizeof cmds[0], cli_cmp);
for (i = 0; i < ncmds; i++, cp++) {
cp = cmds[i];
if (!strncmp(cp->request, "debug.", 6))
continue;
printf(".. _ref_cli_%s:\n\n", cp->syntax);
printf(".. _ref_cli_");
for (p = cp->request; *p; p++)
putchar(*p == '.' ? '_' : *p);
printf(":\n\n");
printf("%s\n", cp->syntax);
for (j = 0; j < strlen(cp->syntax); j++)
printf("~");
@@ -110,7 +110,7 @@ of the following keywords:
Switch to vcl labelled *label*. This will continue vcl processing
in this vcl's :ref:`vcl_recv` as if it was the active vcl.

See the :ref:`varnishadm(1)` ``vcl.label`` command.
See the :ref:`ref_cli_vcl_label` command.

.. _vcl_pipe:

@@ -537,8 +537,8 @@ with one of the following keywords:
:ref:`vcl_synth` on the client side is called with ``resp.status``
preset to 503.

vcl.load / vcl.discard
----------------------
During vcl.load / vcl.discard
-----------------------------

.. _vcl_init:

@@ -141,7 +141,9 @@ CLI_CMD(VCL_LABEL,
"vcl.label",
"vcl.label <label> <configname>",
"Apply label to configuration.",
"",
"A VCL label is like a UNIX symbolic link, "
"a name without substance, which points to another VCL.\n\n"
"Labels are mandatory whenever one VCL references another.",
2, 2
)

0 comments on commit d9ccdb7

Please sign in to comment.
You can’t perform that action at this time.