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