Created
June 27, 2018 16:16
-
-
Save fieldju/fe312d576c5ccf546f479bcf86bf25a1 to your computer and use it in GitHub Desktop.
A groovy script template with grapes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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