Commit 89c1db5
authored
feat: update signature for file gen commands (#27)
Consolidates the command interface by renaming file generation commands from mandate:make:* to mandate:* and merging database creation functionality into the same commands via a --db flag. This simplifies the command structure and provides a more intuitive API where the default behavior generates PHP classes (code-first approach) and the --db flag creates database records directly (database-first approach).
Changes:
* Unified command signatures: mandate:permission, mandate:role, mandate:capability, and mandate:feature now support both class generation (default) and database creation (with --db flag)
* Removed separate CreateRoleCommand, CreatePermissionCommand, and CreateCapabilityCommand classes
* Updated all tests, documentation, and configuration references to use the new command names1 parent bc29bd0 commit 89c1db5
File tree
18 files changed
+468
-355
lines changed- config
- src
- Commands
- tests
- Feature/Commands
18 files changed
+468
-355
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| |||
383 | 389 | | |
384 | 390 | | |
385 | 391 | | |
386 | | - | |
387 | | - | |
388 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
389 | 398 | | |
390 | | - | |
391 | | - | |
392 | | - | |
| 399 | + | |
| 400 | + | |
393 | 401 | | |
394 | | - | |
395 | | - | |
396 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
397 | 406 | | |
398 | 407 | | |
399 | 408 | | |
| |||
661 | 670 | | |
662 | 671 | | |
663 | 672 | | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
668 | 680 | | |
669 | 681 | | |
670 | 682 | | |
| |||
1106 | 1118 | | |
1107 | 1119 | | |
1108 | 1120 | | |
1109 | | - | |
1110 | | - | |
| 1121 | + | |
| 1122 | + | |
1111 | 1123 | | |
1112 | 1124 | | |
1113 | | - | |
| 1125 | + | |
1114 | 1126 | | |
1115 | 1127 | | |
1116 | | - | |
| 1128 | + | |
1117 | 1129 | | |
1118 | 1130 | | |
1119 | 1131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments