Last active
December 30, 2015 06:47
-
-
Save pegasuskim/5fe2d16b12306a0d3b90 to your computer and use it in GitHub Desktop.
shell.js usage
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
var shell = require('./shell'); | |
// execute a single shell command | |
shell.exec('npm test --coverage', function(err){ | |
console.log('executed test'); | |
}}); | |
// execute multiple commands in series | |
shell.series([ | |
'node build release' | |
'git add -A', | |
'git commit --verbose' | |
], function(err){ | |
console.log('executed many commands in a row'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment