@@ -158,7 +158,7 @@ public static function controller() {
158
158
"v " => Parameter::create ("views " , "creates an associated view folder " , [
159
159
"true " ,
160
160
"false "
161
- ])
161
+ ], ' false ' )
162
162
], [
163
163
'Creates a controller ' => 'Ubiquity controller UserController ' ,
164
164
'with its associated view ' => 'Ubiquity controller UserController -v '
@@ -197,8 +197,8 @@ public static function routes() {
197
197
'patch '
198
198
])
199
199
], [
200
- 'Ubiquity info:routes ' ,
201
- 'Ubiquity info:routes -type=rest ' ,
200
+ 'All routes ' => ' Ubiquity info:routes ' ,
201
+ 'Rest routes ' => ' Ubiquity info:routes -type=rest ' ,
202
202
'Only the routes with the method post ' => 'Ubiquity info:routes -type=rest -m=-post '
203
203
], 'router ' );
204
204
}
@@ -256,7 +256,8 @@ public static function serve() {
256
256
"t " => Parameter::create ("type " , "Sets the server type. " , [
257
257
'php ' ,
258
258
'react ' ,
259
- 'swoole '
259
+ 'swoole ' ,
260
+ 'roadrunner '
260
261
], 'php ' )
261
262
], [
262
263
'Starts a php server at 127.0.0.1:8090 ' => 'Ubiquity serve ' ,
@@ -374,7 +375,10 @@ public static function newAction() {
374
375
], [
375
376
"p " => Parameter::create ("params " , "The action parameters (or arguments) " , []),
376
377
"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 " )
378
382
], [
379
383
'Adds the action all in controller Users ' => 'Ubiquity action Users.all ' ,
380
384
'Adds the action display in controller Users with a parameter ' => 'Ubiquity action Users.display -p=idUser ' ,
@@ -388,7 +392,10 @@ public static function infoModel() {
388
392
return new Command ("info:model " , "infoType " , "Returns the model meta datas. " , [
389
393
"info-model "
390
394
], [
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 " ),
392
399
"m " => Parameter::create ("model " , "The model on which the information is sought. " , []),
393
400
"f " => Parameter::create ("fields " , "The fields to display in the table. " , [])
394
401
], [
@@ -415,7 +422,10 @@ public static function infoValidation() {
415
422
"info:validators " ,
416
423
"info-validators "
417
424
], [
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 ' ),
419
429
"m " => Parameter::create ("model " , "The model on which the information is sought. " , [])
420
430
], [
421
431
'Gets validators for User class ' => 'Ubiquity info:validation -m=User ' ,
@@ -674,6 +684,14 @@ public function getParameters() {
674
684
return $ this ->parameters ;
675
685
}
676
686
687
+ /**
688
+ *
689
+ * @return mixed
690
+ */
691
+ public function getExamples () {
692
+ return $ this ->examples ;
693
+ }
694
+
677
695
/**
678
696
*
679
697
* @return mixed
0 commit comments