Created
December 16, 2012 04:21
-
-
Save shawjia/4303304 to your computer and use it in GitHub Desktop.
Cakefile Sample: morning
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
### | |
http://coffeescript.org/#cake | |
`cake -n jia morning` | |
### | |
option '-n', '--name [NAME]', 'name to say morning to' | |
task 'wake', 'Wake up', -> | |
console.log 'Time to wake up' | |
task 'wash', 'wash', -> | |
console.log 'Clean your face, dude' | |
task 'morning', 'Say good morning', (options) -> | |
invoke 'wake' | |
invoke 'wash' | |
console.log "Hi #{options.name or 'there'}, Good morning" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment