|
1 | 1 | component excludeFromHelp=true extends="coldbox-cli.models.BaseCommand" { |
2 | 2 |
|
3 | 3 | function run(){ |
4 | | - showColdBoxBanner() |
5 | | - variables.print |
6 | | - .line() |
7 | | - .blue( "The " ) |
8 | | - .boldblue( "coldbox create" ) |
9 | | - .blueLine( " namespace allows you to quickly scaffold applications " ) |
10 | | - .blueLine( "and individual app pieces. Use these commands to stub out placeholder files" ) |
11 | | - .blue( "as you plan your application. Most commands create a single file, but """ ) |
12 | | - .boldblue( "coldbox create app" ) |
13 | | - .blueLine( """" ) |
14 | | - .blueLine( "will generate an entire, working application into an empty folder for you. Type help before" ) |
15 | | - .blueLine( "any command name to get additional information on how to call that specific command." ) |
16 | | - .line() |
17 | | - .line(); |
| 4 | + showColdBoxBanner( "Code Generation" ) |
| 5 | + print.line(); |
| 6 | + print |
| 7 | + .boldCyan( "ColdBox Code Generation Commands" ) |
| 8 | + .line() |
| 9 | + .line() |
| 10 | + .whiteLine( "Scaffold complete applications or individual components with intelligent code generation" ) |
| 11 | + .line() |
| 12 | + .boldWhiteLine( "Application Scaffolding:" ) |
| 13 | + .line() |
| 14 | + .greenLine( " coldbox create app-wizard Interactive wizard to create a new application" ) |
| 15 | + .greenLine( " coldbox create app Create an application with manual options" ) |
| 16 | + .greenLine( " coldbox create module Create a ColdBox module" ) |
| 17 | + .line() |
| 18 | + .boldWhiteLine( "MVC Components:" ) |
| 19 | + .line() |
| 20 | + .greenLine( " coldbox create handler Create an event handler (controller)" ) |
| 21 | + .greenLine( " coldbox create model Create a model (service/bean)" ) |
| 22 | + .greenLine( " coldbox create view Create a view template" ) |
| 23 | + .greenLine( " coldbox create layout Create a layout template" ) |
| 24 | + .greenLine( " coldbox create interceptor Create an interceptor (AOP)" ) |
| 25 | + .line() |
| 26 | + .boldWhiteLine( "REST & Resources:" ) |
| 27 | + .line() |
| 28 | + .greenLine( " coldbox create resource Create a complete RESTful resource (handler + routes)" ) |
| 29 | + .greenLine( " coldbox create orm-crud Create CRUD handler for an ORM entity" ) |
| 30 | + .greenLine( " coldbox create orm-entity Create an ORM entity" ) |
| 31 | + .line() |
| 32 | + .boldWhiteLine( "Testing:" ) |
| 33 | + .line() |
| 34 | + .greenLine( " coldbox create integration-test Create an integration test" ) |
| 35 | + .greenLine( " coldbox create unit-test Create a unit test" ) |
| 36 | + .greenLine( " coldbox create bdd Create a BDD test spec" ) |
| 37 | + .line() |
| 38 | + .yellowLine( "Examples:" ) |
| 39 | + .line() |
| 40 | + .dim( " ## Create new app interactively" ) |
| 41 | + .line( " coldbox create app-wizard" ) |
| 42 | + .line() |
| 43 | + .dim( " ## Create a handler with views" ) |
| 44 | + .line( " coldbox create handler Users --views=index,show,edit" ) |
| 45 | + .line() |
| 46 | + .dim( " ## Create a RESTful resource" ) |
| 47 | + .line( " coldbox create resource api.Products" ) |
| 48 | + .line() |
| 49 | + .dim( " ## Create a service with tests" ) |
| 50 | + .line( " coldbox create model services.UserService --tests" ) |
| 51 | + .line() |
| 52 | + .line() |
| 53 | + .yellowLine( "Tip: Type 'coldbox create <command> --help' for detailed command options" ) |
| 54 | + .line() |
18 | 55 | } |
19 | 56 |
|
20 | 57 | } |
0 commit comments