Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
worker-farm → farm
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 3, 2017
1 parent e8c835c commit d958556
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# worker-farm-cli

![Last version](https://img.shields.io/github/tag/Kikobeats/worker-farm-cli.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/Kikobeats/worker-farm-cli/master.svg?style=flat-square)](https://travis-ci.org/Kikobeats/worker-farm-cli)
[![Coverage Status](https://img.shields.io/coveralls/Kikobeats/worker-farm-cli.svg?style=flat-square)](https://coveralls.io/github/Kikobeats/worker-farm-cli)
[![Dependency status](https://img.shields.io/david/Kikobeats/worker-farm-cli.svg?style=flat-square)](https://david-dm.org/Kikobeats/worker-farm-cli)
[![Dev Dependencies Status](https://img.shields.io/david/dev/Kikobeats/worker-farm-cli.svg?style=flat-square)](https://david-dm.org/Kikobeats/worker-farm-cli#info=devDependencies)
[![NPM Status](https://img.shields.io/npm/dm/worker-farm-cli.svg?style=flat-square)](https://www.npmjs.org/package/worker-farm-cli)
# farm-cli

![Last version](https://img.shields.io/github/tag/Kikobeats/farm-cli.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/Kikobeats/farm-cli/master.svg?style=flat-square)](https://travis-ci.org/Kikobeats/farm-cli)
[![Coverage Status](https://img.shields.io/coveralls/Kikobeats/farm-cli.svg?style=flat-square)](https://coveralls.io/github/Kikobeats/farm-cli)
[![Dependency status](https://img.shields.io/david/Kikobeats/farm-cli.svg?style=flat-square)](https://david-dm.org/Kikobeats/farm-cli)
[![Dev Dependencies Status](https://img.shields.io/david/dev/Kikobeats/farm-cli.svg?style=flat-square)](https://david-dm.org/Kikobeats/farm-cli#info=devDependencies)
[![NPM Status](https://img.shields.io/npm/dm/farm-cli.svg?style=flat-square)](https://www.npmjs.org/package/farm-cli)
[![Donate](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square)](https://paypal.me/Kikobeats)

> Launch a farm of worker from the CLI. Based on [worker-farm](https://github.com/rvagg/node-worker-farm).
## Install

```bash
$ npm install worker-farm-cli --global
$ npm install farm-cli --global
```

## Usage

```
Usage
$ worker-farm [options] <file>
$ farm [options] <file>
Options
-n, --cores [default=numCPUs] Cores to use for spawn workers.
Expand All @@ -31,7 +31,7 @@ Options
-r, --retries [default=Infinity] Max number of call requeues after unexpected worker termination.
It's possible to load [options] from file, creating '.farm' JSON file on the path of <file>.
It's possible to load [options] from file, creating '.farmrc' JSON file on the path of <file>.
Examples
$ farm process
Expand Down
4 changes: 2 additions & 2 deletions bin/cli/help.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Usage
$ worker-farm [options] <file>
$ farm [options] <file>

Options
-n, --cores [default=numCPUs] Cores to use for spawn workers.
Expand All @@ -10,7 +10,7 @@ Options

-r, --retries [default=Infinity] Max number of call requeues after unexpected worker termination.

It's possible to load [options] from file, creating '.farm' JSON file on the path of <file>.
It's possible to load [options] from file, creating '.farmrc' JSON file on the path of <file>.

Examples
$ farm process
Expand Down
2 changes: 1 addition & 1 deletion example/basic/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Basic

```bash
$ DEBUG=worker-farm-cli worker-farm -w 2 -n 5 -d 0 example/basic --your-file-flags foo=bar
$ DEBUG=farm-cli farm -w 2 -n 5 -d 0 example/basic --your-file-flags foo=bar
```
2 changes: 1 addition & 1 deletion example/load-config/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Basic

```bash
$ DEBUG=worker-farm-cli worker-farm -w 2 -n 5 -d 0 example/basic --your-file-flags foo=bar
$ DEBUG=farm-cli farm -w 2 -n 5 -d 0 example/load-config --your-file-flags foo=bar
```
2 changes: 1 addition & 1 deletion example/throw-error/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
If the process throw an error, then the child worker will spawned again.

```bash
$ DEBUG=worker-farm-cli worker-farm -w 1 -n 1 -d 0 example/throw-error --your-file-flags foo=bar
$ DEBUG=farm-cli farm -w 1 -n 1 -d 0 example/throw-error --your-file-flags foo=bar
```
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "worker-farm-cli",
"name": "farm-cli",
"description": "Launch a farm of worker from the CLI.",
"homepage": "https://github.com/Kikobeats/worker-farm-cli",
"homepage": "https://github.com/Kikobeats/farm-cli",
"version": "2.0.0",
"main": "bin",
"bin": {
"worker-farm": "bin/cli/index.js"
"farm": "bin/cli/index.js"
},
"author": {
"email": "josefrancisco.verdu@gmail.com",
Expand All @@ -14,10 +14,10 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/kikobeats/worker-farm-cli.git"
"url": "git+https://github.com/kikobeats/farm-cli.git"
},
"bugs": {
"url": "https://github.com/Kikobeats/worker-farm-cli/issues"
"url": "https://github.com/Kikobeats/farm-cli/issues"
},
"keywords": [
"child",
Expand Down

0 comments on commit d958556

Please sign in to comment.