(Quick Reference)

create-generator-command

Description

Creates a new generate-* 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

$ grace create-generator-command [Command Name] [Target Directory]

Examples

$ grace create-generator-command Example example
| Rendered template GeneratorCommand.groovy to destination commands/generate-example.groovy
| Rendered template GeneratorTemplate.groovy to destination templates/example/Example.groovy