Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 588 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 588 Bytes

Reburn

Automatic script restarter on file change detection

How to use it?

Terminal invocation

Example for cargo project, will reload when any file under src folder changes

$ reburn "src/**" -- cargo run

Embedded in a script

Create a python script that runs whenever itself changes

#!reburn file.py
#!python
print("Running...")

Can be launched as a normal script

$ ./file.py

Why a second shebang? It's easy to parse, also it feels natural to wrap an already working script with the reburn shebang in order to provide the reloading feature