@@ -158,7 +158,7 @@ public static function controller() {
158158 "v " => Parameter::create ("views " , "creates an associated view folder " , [
159159 "true " ,
160160 "false "
161- ])
161+ ], ' false ' )
162162 ], [
163163 'Creates a controller ' => 'Ubiquity controller UserController ' ,
164164 'with its associated view ' => 'Ubiquity controller UserController -v '
@@ -197,8 +197,8 @@ public static function routes() {
197197 'patch '
198198 ])
199199 ], [
200- 'Ubiquity info:routes ' ,
201- 'Ubiquity info:routes -type=rest ' ,
200+ 'All routes ' => ' Ubiquity info:routes ' ,
201+ 'Rest routes ' => ' Ubiquity info:routes -type=rest ' ,
202202 'Only the routes with the method post ' => 'Ubiquity info:routes -type=rest -m=-post '
203203 ], 'router ' );
204204 }
@@ -256,7 +256,8 @@ public static function serve() {
256256 "t " => Parameter::create ("type " , "Sets the server type. " , [
257257 'php ' ,
258258 'react ' ,
259- 'swoole '
259+ 'swoole ' ,
260+ 'roadrunner '
260261 ], 'php ' )
261262 ], [
262263 'Starts a php server at 127.0.0.1:8090 ' => 'Ubiquity serve ' ,
@@ -374,7 +375,10 @@ public static function newAction() {
374375 ], [
375376 "p " => Parameter::create ("params " , "The action parameters (or arguments) " , []),
376377 "r " => Parameter::create ("route " , "The associated route path " , []),
377- "v " => Parameter::create ("create-view " , "Creates the associated view " , [], "false " )
378+ "v " => Parameter::create ("create-view " , "Creates the associated view " , [
379+ "true " ,
380+ "false "
381+ ], "false " )
378382 ], [
379383 'Adds the action all in controller Users ' => 'Ubiquity action Users.all ' ,
380384 'Adds the action display in controller Users with a parameter ' => 'Ubiquity action Users.display -p=idUser ' ,
@@ -388,7 +392,10 @@ public static function infoModel() {
388392 return new Command ("info:model " , "infoType " , "Returns the model meta datas. " , [
389393 "info-model "
390394 ], [
391- "s " => Parameter::create ("separate " , "If true, returns each info in a separate table " , []),
395+ "s " => Parameter::create ("separate " , "If true, returns each info in a separate table " , [
396+ "true " ,
397+ "false "
398+ ], "false " ),
392399 "m " => Parameter::create ("model " , "The model on which the information is sought. " , []),
393400 "f " => Parameter::create ("fields " , "The fields to display in the table. " , [])
394401 ], [
@@ -415,7 +422,10 @@ public static function infoValidation() {
415422 "info:validators " ,
416423 "info-validators "
417424 ], [
418- "s " => Parameter::create ("separate " , "If true, returns each info in a separate table " , []),
425+ "s " => Parameter::create ("separate " , "If true, returns each info in a separate table " , [
426+ 'true ' ,
427+ 'false '
428+ ], 'false ' ),
419429 "m " => Parameter::create ("model " , "The model on which the information is sought. " , [])
420430 ], [
421431 'Gets validators for User class ' => 'Ubiquity info:validation -m=User ' ,
@@ -674,6 +684,14 @@ public function getParameters() {
674684 return $ this ->parameters ;
675685 }
676686
687+ /**
688+ *
689+ * @return mixed
690+ */
691+ public function getExamples () {
692+ return $ this ->examples ;
693+ }
694+
677695 /**
678696 *
679697 * @return mixed
0 commit comments