* mu: create basics for the 'stats' command

This commit is contained in:
djcb
2012-10-17 23:56:47 +03:00
parent 578a4c7a54
commit 102eba19d9
5 changed files with 44 additions and 30 deletions

View File

@ -516,20 +516,20 @@ mu_cmd_verify (MuConfig *opts, GError **err)
MuError
mu_cmd_verify (MuConfig *opts, GError **err)
{
g_warning ("this version of mu does not support the 'verify' command");
mu_util_g_set_error (err, MU_ERROR_IN_PARAMETERS,
"this mu does not support the "
"'verify' command");
return MU_ERROR_IN_PARAMETERS;
}
#endif /*!BUILD_CRYPTO*/
static void
show_usage (void)
{
g_print ("usage: mu command [options] [parameters]\n");
g_print ("where command is one of index, find, cfind, view, mkdir, "
"extract, add, remove, verify or server\n");
"extract, add, remove, stats, verify or server\n");
g_print ("see the mu, mu-<command> or mu-easy manpages for "
"more information\n");
}
@ -593,9 +593,6 @@ set_log_options (MuConfig *opts)
logopts |= MU_LOG_OPTIONS_DEBUG;
}
MuError
mu_cmd_execute (MuConfig *opts, GError **err)
{
@ -614,6 +611,7 @@ mu_cmd_execute (MuConfig *opts, GError **err)
case MU_CONFIG_CMD_CFIND: merr = mu_cmd_cfind (opts, err); break;
case MU_CONFIG_CMD_MKDIR: merr = mu_cmd_mkdir (opts, err); break;
case MU_CONFIG_CMD_STATS: merr = mu_cmd_stats (opts, err); break;
case MU_CONFIG_CMD_VIEW: merr = mu_cmd_view (opts, err); break;
case MU_CONFIG_CMD_VERIFY: merr = mu_cmd_verify (opts, err); break;
case MU_CONFIG_CMD_EXTRACT: merr = mu_cmd_extract (opts, err); break;