https://github.com/junekelly/manuel-contrib-concurrent
Easily run manuel tasks concurrently.
https://github.com/junekelly/manuel-contrib-concurrent
Last synced: 12 months ago
JSON representation
Easily run manuel tasks concurrently.
- Host: GitHub
- URL: https://github.com/junekelly/manuel-contrib-concurrent
- Owner: JuneKelly
- Created: 2014-07-12T14:21:47.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-03-19T10:04:14.000Z (about 11 years ago)
- Last Synced: 2025-02-26T11:36:15.369Z (over 1 year ago)
- Language: Shell
- Size: 144 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# manuel-contrib-concurrent
Easily run [manuel](http://github.com/ShaneKilkelly/manuel) tasks
concurrently.
# Installation
Clone this repository into your manuel plugins directory
(`$HOME/.manuel.d/plugins` by default):
```bash
$ cd ~/.manuel.d/plugins
$ git clone git://github.com/ShaneKilkelly/manuel-contrib-concurrent.git
```
# Usage
Simply pass an array of commands to the `manuel_concurrent` function.
Example:
```bash
# in a manuelfile
load_plugin manuel-contrib-concurrent
function work_one {
echo "working one"
sleep 7
echo "done one"
}
function work_two {
echo "working two"
sleep 4
echo "done two"
}
function do_all_work {
tasks=("work_one" "work_two")
manuel_concurrent $tasks
}
```
# Changelog
## v1.0.0
* Add a version file