X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Cli.php;h=2169456ed6d913f6f48b5da577313db586361f8e;hp=3c40951f98c051ac8096e39b1ef330da04ea705e;hb=a1a3ecba68d2fedabc8203e88b40759401d7472d;hpb=b354275c65d299db6f727c12dfd4c4c099ae413b diff --git a/Cli.php b/Cli.php index 3c40951f..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/pman-core-notify - * * * * * 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