looking for wrong seperator
[Pman.Core] / Cli.php
diff --git a/Cli.php b/Cli.php
index 8a18e74..2169456 100644 (file)
--- a/Cli.php
+++ b/Cli.php
@@ -1,61 +1,31 @@
 <?php
 /*
 
-Help file for cli in this directory.
-*/
+ Base class for CLI only commands
 
+*/
 
-class Pman_Core_Cli
+require_once 'Pman.php';
+class Pman_Core_Cli extends Pman
 {
+    static $cli_desc = "Base class for CLI only commands";
     
     function getAuth()
     {
-        return false;
+        $ff = HTML_FlexyFramework::get();
+        if (!$ff->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-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