]> git.sur5r.net Git - ngadmin/blobdiff - cli/commands.c
CLI: added the possibility to interrupt hanging commands with CTRL+C.
[ngadmin] / cli / commands.c
index 2d5e9cc643e8f58e3fb579d79503ede3be796ccf..df13a580af0f1a966ce0a52492fcf08ae6b1006b 100644 (file)
@@ -22,6 +22,10 @@ bool do_firmware_show (int nb, const char **com, struct ngadmin *nga);
 bool do_firmware_upgrade (int nb, const char **com, struct ngadmin *nga);
 
 
+// help
+bool do_help (int nb, const char **com, struct ngadmin *nga);
+
+
 // igmp
 bool do_igmp_set (int nb, const char **com, struct ngadmin *nga);
 bool do_igmp_show (int nb, const char **com, struct ngadmin *nga);
@@ -119,6 +123,8 @@ COM_ROOT_START(coms)
   COM_TERM(upgrade, do_firmware_upgrade, true)
  COM_END
  
+ COM_TERM(help, do_help, false)
  COM_START(igmp)
   COM_TERM(set, do_igmp_set, true)
   COM_TERM(show, do_igmp_show, false)