https://github.com/codeharik/rerun
watch a folder and rerun a command whenever files change
https://github.com/codeharik/rerun
Last synced: 12 months ago
JSON representation
watch a folder and rerun a command whenever files change
- Host: GitHub
- URL: https://github.com/codeharik/rerun
- Owner: CodeHariK
- Created: 2024-06-20T15:12:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-04T02:31:49.000Z (over 1 year ago)
- Last Synced: 2025-03-23T09:35:15.381Z (about 1 year ago)
- Language: Go
- Size: 941 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ReRun
* `Monitor a Directory`: Watch a specified directory for any file changes.
* `Automatic Command Execution`: Run a command automatically when files in the directory change.
* `Local File Editing`: Provides a built-in web server that serves the files from your monitored directory, allowing direct modifications in the browser.
* `Error and Log Monitoring`: Includes features to monitor errors and logs directly in the browser, helping you track issues and outputs.
* `Periodic Rerun`: Option to rerun the command at regular intervals.
* `Customizable`: Set specific ports to kill if needed.
```go
go: downloading github.com/fsnotify/fsnotify v1.7.0
go: downloading github.com/gorilla/websocket v1.5.3
go: downloading golang.org/x/sys v0.22.0
ReRun v0.1.9 : Monitor a directory and automatically execute a command when directory change, or rerun the command on a set interval.
-k string
Optional Kill Ports
-t int
Optional Rerun Delay Time in seconds [Min 1s] (default -1)
-w int
Optional Watch port (default -1)
SPIDER : http://localhost:9753/ui
Usage: go run main.go [-w Watch Ports] [-k Kill Ports] [-t Rerun Delay Time]
Usage: go run main.go -w=8080 example "go run example/server.go"
Usage: go run main.go -w=8080 -k=8080,3000 -t=30 example "go run example/server.go"
Usage: rerun [-w Watch Ports] [-k Kill Ports] [-t Rerun Delay Time]
Usage: rerun -w=8080 example "go run example/server.go"
Usage: rerun -w=8080 -k=8080,3000 -t=30 example "go run example/server.go"
```
## Installation
```bash
go get github.com/codeharik/rerun
go install github.com/codeharik/rerun@latest
```