예제 #1
0
 static function Docs()
 {
     Mojo::line();
     Mojo::prompt("Welcome to the Mojo Task help documentation...");
     Mojo::prompt("Here is the default application syntax:");
     Mojo::prompt("\$./mojo [Class] [Method] --param1=(arg1) --param2=(arg2) --param3=(arg3)");
     Mojo::line("\n------------------------------------------------\n\n");
     Mojo::prompt("CONFIGURATION");
     Mojo::line();
     Mojo::prompt("\$./mojo Config Setup");
     Mojo::prompt("\$./mojo Config Show");
     Mojo::prompt("\$./mojo Config Clear");
     Mojo::prompt("\$./mojo Config Update");
     Mojo::line("\n------------------------------------------------\n\n");
     Mojo::prompt("SCAFFOLDING");
     Mojo::line();
     Mojo::prompt("\$./mojo Controller Scaffold --name='myapp.controller.SampleController' --author='Author' --description='Description'");
     Mojo::prompt("@params:");
     Mojo::prompt("\tname: name of the module");
     Mojo::prompt("\tauthor: author name if not in config");
     Mojo::prompt("\tdescription: describe the module");
     Mojo::line("\n------------------------------------------------\n\n");
     Mojo::prompt("BUILDING / COMPRESSING");
     Mojo::line();
     Mojo::prompt("\$./mojo Build Compress --overwrite=true --debug=true");
     Mojo::prompt("@params:");
     Mojo::prompt("\toverwrite - will stop the out put of the build from incrementing");
     Mojo::prompt("\tex: mojojsdir/dist/1/application.js will not increment to 2");
     Mojo::prompt("\tdebug - will show the list of dependencies");
     Mojo::line();
     exit;
 }
예제 #2
0
 public function Show($value = false)
 {
     Mojo::line();
     Mojo::prompt("Here is your current working configuration: \n");
     print_r($_SESSION);
     echo "\n";
     Mojo::prompt("To update a value use \$ mojo Config Update --key=value\n");
 }