Skip to content

Commit 17f3733

Browse files
committed
add db offset param to info:models command
1 parent 805d416 commit 17f3733

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Ubiquity/devtools/cmd/Command.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public static function allModels() {
213213
return new Command("all-models", "", "Generates all models from database.", [
214214
"create-all-models"
215215
], [
216-
'd' => Parameter::create('database', 'The database connection to use', [], 'default'),
216+
'd' => Parameter::create('database', 'The database connection to use (offset)', [], 'default'),
217217
'a' => Parameter::create('access', 'The default access to the class members', [], 'private')
218218
], [
219219
'Ubiquity all-models',
@@ -411,10 +411,12 @@ public static function infoModels() {
411411
return new Command("info:models", "", "Returns the models meta datas.", [
412412
"info-models"
413413
], [
414+
'd' => Parameter::create('database', 'The database connection to use (offset)', [], 'default'),
414415
"m" => Parameter::create("models", "The models on which the information is sought.", []),
415416
"f" => Parameter::create("fields", "The fields to display in the table.", [])
416417
], [
417-
'Gets metadatas for all models' => 'Ubiquity info:models',
418+
'Gets metadatas for all models in default db' => 'Ubiquity info:models',
419+
'Gets metadatas for all models in messagerie db' => 'Ubiquity info:models -d=messagerie',
418420
'Gets metadatas for User and Group models' => 'Ubiquity info:models -m=User,Group',
419421
'Gets all primary keys for all models' => 'Ubiquity info:models -f=#primaryKeys'
420422
], 'models');

0 commit comments

Comments
 (0)