diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-12-02 22:25:04 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-12-02 22:25:04 +0100 |
commit | dfff2351c1cf010650e27533806e49de45ec146f (patch) | |
tree | 6a02a97e52eb9f1e3c2f720de4771ab3571103fe /eurephiadm/commands.h | |
parent | 6e04eddf5ff4c9d76dc1b0df70bcc946d812cfa4 (diff) | |
download | eurephia-dfff2351c1cf010650e27533806e49de45ec146f.tar.gz eurephia-dfff2351c1cf010650e27533806e49de45ec146f.tar.xz eurephia-dfff2351c1cf010650e27533806e49de45ec146f.zip |
Added command for editing eurephia config (in database)
Diffstat (limited to 'eurephiadm/commands.h')
-rw-r--r-- | eurephiadm/commands.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eurephiadm/commands.h b/eurephiadm/commands.h index 141fadd..242a5c8 100644 --- a/eurephiadm/commands.h +++ b/eurephiadm/commands.h @@ -41,16 +41,18 @@ int cmd_ShowCfg(eurephiaCTX *, eurephiaSESSION *, eurephiaVALUES *cfg, int argc, /* Commands listed are found in ./commands/{command}.c files - one file per command*/ int cmd_ListUsers(eurephiaCTX *, eurephiaSESSION *, eurephiaVALUES *cfg, int argc, char **argv); +int cmd_EditConfig(eurephiaCTX *, eurephiaSESSION *, eurephiaVALUES *cfg, int argc, char **argv); /* Declaration of all commands */ static const eurephiadm_functions cmdline_functions[] = { - // command, need_session, arghints, helpinfo, helpdescr, function + // command, need_session, arghints, helpinfo, helpdescr, function {"help", 0, NULL, "This help screen", NULL, cmd_Help}, {"logout", 1, NULL, "Logout from an open session", NULL, cmd_Logout}, {"listusers", 1, NULL, "List all registered users", NULL, cmd_ListUsers}, {"show-config", 1, NULL, "List all config settings", NULL, cmd_ShowCfg}, {"show-configfile", 0, NULL, "List only config file settings", NULL, cmd_ShowCfg}, + {"config", 1, "[-s|-d] <key>", "Add, delete or show one config setting", NULL, cmd_EditConfig}, {NULL, 0, NULL, NULL, NULL, NULL} }; |