X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Cli.php;h=2169456ed6d913f6f48b5da577313db586361f8e;hp=8537b92da60282c1b3ff12004ae1bfa1538f41cc;hb=a1a3ecba68d2fedabc8203e88b40759401d7472d;hpb=4751d0dd8ea6a71e2f70a388fb9dadffe5ba7716 diff --git a/Cli.php b/Cli.php index 8537b92d..2169456e 100644 --- a/Cli.php +++ b/Cli.php @@ -1,63 +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,... - $cli Core/RunGenerator/COMPONENT _all_ - 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