0.7.0 • Published 2 years ago

retry-cli v0.7.0

Weekly downloads
3,142
License
MIT
Repository
github
Last release
2 years ago

retry-cli

Command line interface for retrying other commands with exponential backoff.

Installation

npm install retry-cli

Based on

Just a command line interface to https://www.npmjs.com/package/retry

Example

-> % node cli.js -t 1000 -n 3 -- ls asdf
ls: asdf: No such file or directory
ls: asdf: No such file or directory
ls: asdf: No such file or directory
ls: asdf: No such file or directory

Documentation

Usage: retry [OPTION] -- [COMMAND]

  -n, --retries=ARG      The maximum amount of times to retry the operation. Default is 10.
      --factor=ARG       The exponential factor to use. Default is 2.
  -t, --min-timeout=ARG  The number of milliseconds before starting the first retry. Default is 1000.
      --max-timeout=ARG  The maximum number of milliseconds between two retries. Default is Infinity.
      --randomize        Randomizes the timeouts by multiplying with a factor between 1 to 2. Default is false.
  -h, --help             display this help.
0.7.0

2 years ago

0.6.0

5 years ago

0.5.0

6 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago