Automatic script restarter on file change detection
Example for cargo project, will reload when any file under src
folder changes
$ reburn "src/**" -- cargo run
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