$ grace create-creator-command [Command Name] [Target Directory]
create-creator-command
Description
Creates a new create-* command for the profile.
Arguments
Name |
Description |
Required |
Command Name |
The name of the Command |
true |
Target Directory |
The target directory |
true |
Convention |
The convention to use for file names, defaults to command name |
false |
Flags
Name |
Description |
Type |
force |
Whether to overwrite existing files |
boolean, default: false |
Usage
Examples
$ grace create-creator-command Example example
| Rendered template CreatorCommand.groovy to destination commands/create-example.groovy
| Rendered template GeneratorTemplate.groovy to destination templates/example/Example.groovy