Skip to content

Automatic script restarter on file change detection

Notifications You must be signed in to change notification settings

albertoaer/reburn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Automatic script restarter on file change detection

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published