]> code.citadel.org Git - citadel.git/blobdiff - ctdlsh/src/main.c
* Hillary Clinton is obviously sick right now. I hope she dies.
[citadel.git] / ctdlsh / src / main.c
index 33ccbda4fae732e90f40c1040e429da4f4840d87..2e5b6860348b5191fce3bd3e9b3e1eeff283c3b1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (c) 2009-2011 by Art Cancro and citadel.org
+ * (c) 2009-2012 by Art Cancro and citadel.org
  * This program is released under the terms of the GNU General Public License v3.
  */
 
@@ -23,12 +23,14 @@ typedef struct {
 COMMAND commands[] = {
        {       "?",            cmd_help,       "Display this message"                  },
        {       "help",         cmd_help,       "Display this message"                  },
-       {       "quit",         cmd_quit,       "Quit using ctdlsh"                     },
-       {       "exit",         cmd_quit,       "Quit using ctdlsh"                     },
        {       "date",         cmd_datetime,   "Print the server's date and time"      },
+       {       "exit",         cmd_quit,       "Quit using ctdlsh"                     },
+       {       "export",       cmd_export,     "Export all Citadel databases"          },
+       {       "shutdown",     cmd_shutdown,   "Shut down the Citadel server"          },
        {       "time",         cmd_datetime,   "Print the server's date and time"      },
        {       "passwd",       cmd_passwd,     "Set or change an account password"     },
-       {       "shutdown",     cmd_shutdown,   "Shut down the Citadel server"          },
+       {       "quit",         cmd_quit,       "Quit using ctdlsh"                     },
+       {       "who",          cmd_who,        "Display a list of online users"        },
        {       NULL,           NULL,           NULL                                    }
 };
 
@@ -80,7 +82,6 @@ char **ctdlsh_completion(const char *text, int start, int end) {
 }
 
 
-
 void do_main_loop(int server_socket) {
        char *cmd = NULL;
        char prompt[1024];
@@ -125,6 +126,10 @@ void do_main_loop(int server_socket) {
        }
 }
 
+
+/*
+ * If you don't know what main() does by now you probably shouldn't be reading this code.
+ */
 int main(int argc, char **argv)
 {
        int server_socket = 0;