X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Cli.php;h=2169456ed6d913f6f48b5da577313db586361f8e;hp=e10a49a24fae0d730ff5e1a8d1898ff874030de0;hb=a1a3ecba68d2fedabc8203e88b40759401d7472d;hpb=a1002f5bf79d56b1f739bf16b234ddca61815d9b diff --git a/Cli.php b/Cli.php index e10a49a2..2169456e 100644 --- a/Cli.php +++ b/Cli.php @@ -1,61 +1,31 @@ cli) { + die("CLI ONLY"); + } } - function help($cli) - { - echo " - - $cli Core/RunGenerator - - Creates ALL database tables - - does not change files, just shows you want would happen - - - $cli Core/RunGenerator/COMPONENT - - Runs the generator for a COMPONENT (NOTE - will update that COMPONENT sql) - - does not change files, just shows you want would happen - - $cli Core/RunGenerator/COMPONENT pman.ini,COMPONENT.readers.js,... - - Runs the generator for a project (NOTE - runs all the SQL updates) - - Changes the files. - - -================================ - - $cli Core/JsCompile build PROJECT - - Runs the javascript compiler - merging all the JS files so the load faster. - Note: cfg option Pman_Builder['jspacker'] must be set to location of jstoolkit code - -================================ - - $cli Core/Notify - - Runs the notification tool - should be run every minute ideally. - Sends out emails to anyone in the notification list. - - /etc/cron.d/PmanNotify - * * * * * www-data /usr/bin/php /home/gitlive/web.mtrack/admin.php Core/Notify > /dev/null - -"; - - + function get($v, $opts = Array()) + { + die("this is only used as a base class for Cli based commands - extend to use."); + } + + function output() + { + die("CLI - output exit\n"); } - - } \ No newline at end of file