Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/shin1x1/rerun
- Owner: shin1x1
- License: mit
- Created: 2019-04-19T18:19:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-31T03:26:36.000Z (over 5 years ago)
- Last Synced: 2024-08-05T09:11:55.728Z (3 months ago)
- Topics: golang
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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
```