Skip to content

Instantly share code, notes, and snippets.

@fieldju
Created June 27, 2018 16:16
Show Gist options
  • Save fieldju/fe312d576c5ccf546f479bcf86bf25a1 to your computer and use it in GitHub Desktop.
Save fieldju/fe312d576c5ccf546f479bcf86bf25a1 to your computer and use it in GitHub Desktop.
A groovy script template with grapes
#!/usr/bin/env groovy
import com.caseyscarborough.colorizer.Colorizer
/**
* The dependencies
*/
@Grapes([
@Grab(group='com.caseyscarborough.colorizer', module='groovy-colorizer', version='1.0.0')
])
def info(msg) {
println Colorizer.colorize("$msg")
}
def error(msg) {
println Colorizer.colorize("[red]ERROR: [default]$msg")
}
def main() {
}
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment