Execute a list of CLI commands in order without having to manage manually
Pierrepoint executes so you don't have to.
Pierrepoint executes an automated list of CLI commands, in order, saving you from manually managing synchronous exec calls one by one. It uses the core, async exec method with callbacks and manages default conditions and output messages.
It rhymes with "beer joint".
var Pierrepoint = require'pierrepoint';var albert =message: "MyCommand is starting..."color: "blue"description: "Create temp folder"command: "mkdir ../tmp"continueOnFail: truedescription: "Move files to a temporary folder"command: "mv ./files/* ../tmp"description: "Verify existence of a file"command: 'ls ./images | grep .gitkeep'return !!stdout && error === null;;albertrun;
Each object in the orders array that you pass to the Pierrepoint constructor can contain the following properties:
error, stdout, stderrfrom the exec callback and should return true or false, whether to proceed or not. By default, Pierrepoint checks if
error === nullas the condition.
Green and red feedback messages are output to the CLI for each order.