Skip to content

Instantly share code, notes, and snippets.

@raine
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raine/84f7879b47c932888287 to your computer and use it in GitHub Desktop.
Save raine/84f7879b47c932888287 to your computer and use it in GitHub Desktop.
// 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');
}
})();
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