# shell-task **Repository Path**: mirrors_yyx990803/shell-task ## Basic Information - **Project Name**: shell-task - **Description**: Proof-of-concept then-able shell commands in node. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2026-05-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # shell-task Proof-of-concept then-able shell commands in node. (Although it looks like a promise, it is NOT) ### Install ``` bash $ npm install shell-task ``` ### Usage ``` js var Task = require('shell-task') new Task('git init') .then('sleep 1000') .then('git add .') .then(function (next) { // you can mix JavaScript functions in between... console.log('doing something...') setTimeout(next, 1000) }) .then('git commit -m "testing this cool stuff"') .then('git remote add ...') .then('git push -u origin master') .run(function (err, next) { // this entire callback is optional. if (err) { // you can ignore the exception // and just call next(), which will // continue the flow } else { console.log('done!') } })