Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shin1x1/rerun

A tool that automatically restart a exited commands
https://github.com/shin1x1/rerun

golang

Last synced: about 9 hours ago
JSON representation

A tool that automatically restart a exited commands

Awesome Lists containing this project

README

        

# rerun [![CircleCI](https://circleci.com/gh/shin1x1/rerun.svg?style=svg)](https://circleci.com/gh/shin1x1/rerun)

> A tool that automatically reruns a exited commands

`rerun` is a tool written in Go that automatically restarts the exited command and keeps running. It's like a simplified supervisor on a development PC.

![screencast](https://user-images.githubusercontent.com/88324/58423474-2db68500-80d0-11e9-9816-8f36b026e1ac.gif)

## Installation

Download binary from below link.

You can install using `go get`.

```
go get -u github.com/shin1x1/rerun
```

## Usage

Specifies the command you want to run after `rerun`. Reruns the command after 10 seconds when the specified command exited. You can change the number of seconds in the interval with `-s `.

```bash
# Reruns the command after 10 seconds
$ rerun ./sample.sh

# Reruns the command after a second
$ rerun -s 1 ./sample.sh
```

If the command contains `-`, add `--` before the command.

```bash
$ rerun -- kubectl get events -w
```