| description: |
| - Creates a controller |
| - usage: 'create-controller [controller name]' |
| - completer: org.grails.cli.interactive.completers.DomainClassCompleter |
| - argument: Controller Name |
| description: The name of the controller |
| - flag: force |
| description: Whether to override existing files |
| steps: |
| - command: render |
| template: templates/artifacts/Controller.groovy |
| convention: Controller |
| destination: grails-app/controllers/@artifact.package.path@/@artifact.name@Controller.groovy |
| - command: render |
| template: templates/testing/Controller.groovy |
| convention: Controller |
| destination: src/test/groovy/@artifact.package.path@/@artifact.name@ControllerSpec.groovy |
| - command: mkdir |
| location: grails-app/views/@artifact.propertyName@ |