ework.profiles.web.2023.0.0-M4.source-code.create-controller.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web Show documentation
Show all versions of web Show documentation
A Grace profile for Web applications
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: app/controllers/@artifact.package.path@/@[email protected]
- command: render
template: templates/testing/Controller.groovy
convention: Controller
destination: src/test/groovy/@artifact.package.path@/@[email protected]
- command: mkdir
location: app/views/@artifact.propertyName@