Commit eec8b3ba authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Rename the config.* CLI command family to vcl.*. It is more intuitive

that way and we may eventually want a config file for varnishd to
control obscure parameters.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@998 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent e1a4672e
......@@ -40,10 +40,10 @@ struct cli_proto CLI_cmds[] = {
{ CLI_URL_QUERY, cli_func_url_query },
#endif
{ CLI_URL_PURGE, cli_func_url_purge },
{ CLI_CONFIG_LOAD, cli_func_config_load },
{ CLI_CONFIG_LIST, cli_func_config_list },
{ CLI_CONFIG_DISCARD, cli_func_config_discard },
{ CLI_CONFIG_USE, cli_func_config_use },
{ CLI_VCL_LOAD, cli_func_config_load },
{ CLI_VCL_LIST, cli_func_config_list },
{ CLI_VCL_DISCARD, cli_func_config_discard },
{ CLI_VCL_USE, cli_func_config_use },
/* Undocumented */
{ "dump.pool", "dump.pool",
......
......@@ -110,11 +110,11 @@ static struct cli_proto mgt_cli_proto[] = {
{ CLI_SERVER_START, mcf_server_startstop, NULL },
{ CLI_SERVER_STOP, mcf_server_startstop, &cli_proto },
{ CLI_STATS, mcf_stats, NULL },
{ CLI_CONFIG_LOAD, mcf_config_load, NULL },
{ CLI_CONFIG_INLINE, mcf_config_inline, NULL },
{ CLI_CONFIG_USE, mcf_config_use, NULL },
{ CLI_CONFIG_DISCARD, mcf_config_discard, NULL },
{ CLI_CONFIG_LIST, mcf_config_list, NULL },
{ CLI_VCL_LOAD, mcf_config_load, NULL },
{ CLI_VCL_INLINE, mcf_config_inline, NULL },
{ CLI_VCL_USE, mcf_config_use, NULL },
{ CLI_VCL_DISCARD, mcf_config_discard, NULL },
{ CLI_VCL_LIST, mcf_config_list, NULL },
{ CLI_PARAM_SHOW, mcf_param_show, NULL },
{ CLI_PARAM_SET, mcf_param_set, NULL },
{ CLI_HELP, cli_func_help, NULL },
......
......@@ -47,33 +47,33 @@
"\tReturns all metadata for the specified URL", \
1, 1
#define CLI_CONFIG_LOAD \
"config.load", \
"config.load <configname> <filename>", \
#define CLI_VCL_LOAD \
"vcl.load", \
"vcl.load <configname> <filename>", \
"\tCompile and load the VCL file under the name provided.", \
2, 2
#define CLI_CONFIG_INLINE \
"config.inline", \
"config.inline <configname> <quoted_VCLstring>", \
#define CLI_VCL_INLINE \
"vcl.inline", \
"vcl.inline <configname> <quoted_VCLstring>", \
"\tCompile and load the VCL data under the name provided.", \
2, 2
#define CLI_CONFIG_DISCARD \
"config.discard", \
"config.discard <configname>", \
#define CLI_VCL_DISCARD \
"vcl.discard", \
"vcl.discard <configname>", \
"\tUnload the named configuration (when possible).", \
1, 1
#define CLI_CONFIG_LIST \
"config.list", \
"config.list", \
#define CLI_VCL_LIST \
"vcl.list", \
"vcl.list", \
"\tList all loaded configuration.", \
0, 0
#define CLI_CONFIG_USE \
"config.use", \
"config.use <configname>", \
#define CLI_VCL_USE \
"vcl.use", \
"vcl.use <configname>", \
"\tSwitch to the named configuration immediately.", \
1, 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment