$ grace create-domain-resource [Resource Name]
create-domain-resource
Description
Creates a Domain Class that represents a resource.
Arguments
Name |
Description |
Required |
Resource Name |
The name of the Resource |
true |
Flags
Name |
Description |
Type |
force |
Whether to overwrite existing files |
boolean, default: false |
Usage
Examples
$ grace create-domain-resource Post
| Created app/domain/com/example/Post.groovy
| Created src/test/groovy/com/example/PostSpec.groovy