<?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
-";
-
-
+ function get()
+ {
+ 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