Cli.php
[Pman.Core] / Cli.php
1 <?php
2 /*
3
4  Base class for CLI only commands
5
6 */
7
8 require_once 'Pman.php';
9 class Pman_Core_Cli extends Pman
10 {
11     static $cli_desc = "Base class for CLI only commands";
12     
13     function getAuth()
14     {
15         $ff = HTML_FlexyFramework::get();
16         if (!$ff->cli) {
17             die("CLI ONLY");
18         }
19     }
20     
21     
22     function get()
23     {
24         die("this is only used as a base class for Cli based commands - extend to use.");
25     }
26  
27     
28 }