Last active
August 29, 2015 14:16
-
-
Save raine/84f7879b47c932888287 to your computer and use it in GitHub Desktop.
This file contains 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
// Generated by LiveScript 1.3.1 | |
async(function*(){ | |
var log; | |
log = yield tailLastBuild(jobName, argv.follow); | |
switch (false) { | |
case !(log instanceof Just): | |
log.value.pipe(process.stdout).on('end', process.exit); | |
break; | |
default: | |
console.log('no such build'); | |
} | |
})(); |
This file contains 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
do async ->* | |
log = yield tail-last-build job-name, argv.follow | |
switch | |
| log instanceof Just | |
log.value | |
.pipe process.stdout | |
.on \end process.exit | |
| otherwise | |
console.log 'no such build' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment