Skip to content

Commit

Permalink
issue #83: add example of cli tool
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsk committed Nov 30, 2017
1 parent a9420a9 commit 4da1fd1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Expand Up @@ -21,7 +21,17 @@

## Usage

... will be ported from [examples](examples) soon
### Console tool for command execution with retries

This example shows how to repeat console command until successful.

```bash
$ retry --infinite -timeout 10m -backoff=lin:500ms -- /bin/sh -c 'echo "trying..."; exit $((1 + RANDOM % 10 > 5))'
```

[![asciicast](https://asciinema.org/a/150367.png)](https://asciinema.org/a/150367)

See more details [here](cmd/retry).

## Installation

Expand Down

0 comments on commit 4da1fd1

Please sign in to comment.