【文件属性】:
文件名称:shell-task:一个shell任务程序
文件大小:3KB
文件格式:ZIP
更新时间:2021-04-29 17:48:08
JavaScript
壳任务
一个shell任务程序
怎么跑?
npm run test
例子
new Task ( 'echo "lets go"' )
. set ( {
noInterrupt : false
} )
. exec ( 'wrong cmd' )
. sleep ( 'www' )
. exec ( 'echo haha' )
. sleep ( 5000 )
. exec ( 'echo \'it went thru!\'' )
. run ( function ( err , next ) {
if ( err && next ) {
console . log ( 'test log:' , err ) ;
next ( ) ;
【文件预览】:
shell-task-master
----README.md(424B)
----LICENSE(1KB)
----package.json(310B)
----task.js(3KB)
----test.js(361B)