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