Cli.php
[Pman.Core] / Cli.php
1 <?php
2 /*
3
4 Help file for cli in this directory.
5
6
7 */
8
9
10 class Pman_Core_Cli
11 {
12     
13     function getAuth()
14     {
15         return false;
16     }
17     function help($cli)
18     {
19         echo "
20
21     $cli Core/RunGenerator
22
23     Creates ALL database tables
24     - does not change files, just shows you want would happen
25         
26         
27     $cli Core/RunGenerator/COMPONENT
28
29     Runs the generator for a COMPONENT (NOTE - will update that COMPONENT sql)
30     - does not change files, just shows you want would happen
31
32     
33     $cli Core/RunGenerator/COMPONENT pman.ini,COMPONENT.readers.js,...
34     $cli Core/RunGenerator/COMPONENT _all_
35     Runs the generator for a project (NOTE - runs all the SQL updates)
36     - Changes the files.
37
38  
39 ================================    
40
41     $cli Core/JsCompile   build PROJECT
42      
43     Runs the javascript compiler - merging all the JS files so the load faster.
44     Note: cfg option Pman_Builder['jspacker'] must be set to location of jstoolkit code 
45
46 ================================    
47
48     $cli Core/Notify
49     
50     Runs the notification tool - should be run every minute ideally.
51     Sends out emails to anyone in the notification list.
52     
53     /etc/cron.d/pman-core-notify
54      * *  * * *     www-data     /usr/bin/php /home/gitlive/web.mtrack/admin.php  Core/Notify > /dev/null
55     
56         
57 ";
58
59
60     }
61     
62     
63 }