grails create-script my-script
create-script command creates a new Grails code generation script that can be run with the
grails command from a terminal window.
Creates a script called
src/main/scripts/my-script.groovy such as:
description "Example description", "grails example-usage" println "Example Script"
The command can then be run with:
Each script extends from the super class GroovyScriptCommand which provides an API for achieving a number of different tasks.