pstadler / flightplan

Run sequences of shell commands against local and remote hosts.
https://www.npmjs.com/package/flightplan
MIT License
1.82k stars 117 forks source link

Return the fiber in `Flightplan.run()` #141

Open nikolay opened 8 years ago

nikolay commented 8 years ago

When using Flightplan programatically, there's no (simple?) way to wait for the run() method to finish, inspect the result (success or failure), or capture the output.

I'm trying to use Flightplan in a Slack chatbot and it's not really convenient to use it outside of the CLI interface, which seems to be the primary application of the project, and it's built mostly around it.

pstadler commented 8 years ago

Check this: https://github.com/pstadler/flightplan/issues/82#issuecomment-110849208

nikolay commented 8 years ago

@pstadler I already use this, but there's no way to wait for the task to finish, inspect the status, and capture the output.

nikolay commented 8 years ago

@pstadler Any suggestion how to handle this situation?