@@ -67,6 +67,10 @@ public function help()
6767 ['cron run ' , 'run scheduled tasks once ' ],
6868 ['cron run <module> <task> [now] ' , 'run scheduled task for module ' ],
6969 ['cron monitor ' , 'monitor and run cron tasks as needed ' ],
70+ ['module list ' , 'list all modules and their status ' ],
71+ ['module install <name> ' , 'install module ' ],
72+ ['module uninstall <name> ' , 'uninstall module ' ],
73+ ['module purge <name> ' , 'uninstall module and delete all data ' ],
7074 ['updates list all ' , 'list all available updates ' ],
7175 ['updates list core ' , 'list core ob updates ' ],
7276 ['updates list module <name> ' , 'list updates for specified module ' ],
@@ -92,6 +96,16 @@ public function cron()
9296 }
9397 }
9498
99+ public function module ()
100+ {
101+ global $ subcommand ;
102+ if (in_array ($ subcommand , ['list ' , 'install ' , 'uninstall ' , 'purge ' ])) {
103+ require (__DIR__ . '/commands/module.php ' );
104+ } else {
105+ $ this ->help ();
106+ }
107+ }
108+
95109 public function updates ()
96110 {
97111 global $ argv ;
0 commit comments