blob: a67d09c44c61cf20b41c6f29a55f3650e61067aa [file] [log] [blame]
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@