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[] = { ...@@ -40,10 +40,10 @@ struct cli_proto CLI_cmds[] = {
{ CLI_URL_QUERY, cli_func_url_query }, { CLI_URL_QUERY, cli_func_url_query },
#endif #endif
{ CLI_URL_PURGE, cli_func_url_purge }, { CLI_URL_PURGE, cli_func_url_purge },
{ CLI_CONFIG_LOAD, cli_func_config_load }, { CLI_VCL_LOAD, cli_func_config_load },
{ CLI_CONFIG_LIST, cli_func_config_list }, { CLI_VCL_LIST, cli_func_config_list },
{ CLI_CONFIG_DISCARD, cli_func_config_discard }, { CLI_VCL_DISCARD, cli_func_config_discard },
{ CLI_CONFIG_USE, cli_func_config_use }, { CLI_VCL_USE, cli_func_config_use },
/* Undocumented */ /* Undocumented */
{ "dump.pool", "dump.pool", { "dump.pool", "dump.pool",
......
...@@ -110,11 +110,11 @@ static struct cli_proto mgt_cli_proto[] = { ...@@ -110,11 +110,11 @@ static struct cli_proto mgt_cli_proto[] = {
{ CLI_SERVER_START, mcf_server_startstop, NULL }, { CLI_SERVER_START, mcf_server_startstop, NULL },
{ CLI_SERVER_STOP, mcf_server_startstop, &cli_proto }, { CLI_SERVER_STOP, mcf_server_startstop, &cli_proto },
{ CLI_STATS, mcf_stats, NULL }, { CLI_STATS, mcf_stats, NULL },
{ CLI_CONFIG_LOAD, mcf_config_load, NULL }, { CLI_VCL_LOAD, mcf_config_load, NULL },
{ CLI_CONFIG_INLINE, mcf_config_inline, NULL }, { CLI_VCL_INLINE, mcf_config_inline, NULL },
{ CLI_CONFIG_USE, mcf_config_use, NULL }, { CLI_VCL_USE, mcf_config_use, NULL },
{ CLI_CONFIG_DISCARD, mcf_config_discard, NULL }, { CLI_VCL_DISCARD, mcf_config_discard, NULL },
{ CLI_CONFIG_LIST, mcf_config_list, NULL }, { CLI_VCL_LIST, mcf_config_list, NULL },
{ CLI_PARAM_SHOW, mcf_param_show, NULL }, { CLI_PARAM_SHOW, mcf_param_show, NULL },
{ CLI_PARAM_SET, mcf_param_set, NULL }, { CLI_PARAM_SET, mcf_param_set, NULL },
{ CLI_HELP, cli_func_help, NULL }, { CLI_HELP, cli_func_help, NULL },
......
...@@ -47,33 +47,33 @@ ...@@ -47,33 +47,33 @@
"\tReturns all metadata for the specified URL", \ "\tReturns all metadata for the specified URL", \
1, 1 1, 1
#define CLI_CONFIG_LOAD \ #define CLI_VCL_LOAD \
"config.load", \ "vcl.load", \
"config.load <configname> <filename>", \ "vcl.load <configname> <filename>", \
"\tCompile and load the VCL file under the name provided.", \ "\tCompile and load the VCL file under the name provided.", \
2, 2 2, 2
#define CLI_CONFIG_INLINE \ #define CLI_VCL_INLINE \
"config.inline", \ "vcl.inline", \
"config.inline <configname> <quoted_VCLstring>", \ "vcl.inline <configname> <quoted_VCLstring>", \
"\tCompile and load the VCL data under the name provided.", \ "\tCompile and load the VCL data under the name provided.", \
2, 2 2, 2
#define CLI_CONFIG_DISCARD \ #define CLI_VCL_DISCARD \
"config.discard", \ "vcl.discard", \
"config.discard <configname>", \ "vcl.discard <configname>", \
"\tUnload the named configuration (when possible).", \ "\tUnload the named configuration (when possible).", \
1, 1 1, 1
#define CLI_CONFIG_LIST \ #define CLI_VCL_LIST \
"config.list", \ "vcl.list", \
"config.list", \ "vcl.list", \
"\tList all loaded configuration.", \ "\tList all loaded configuration.", \
0, 0 0, 0
#define CLI_CONFIG_USE \ #define CLI_VCL_USE \
"config.use", \ "vcl.use", \
"config.use <configname>", \ "vcl.use <configname>", \
"\tSwitch to the named configuration immediately.", \ "\tSwitch to the named configuration immediately.", \
1, 1 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