HotReloader

Re-execute command when a file changes
Installation
From Github releases page
Go to Release page then download the binary which fits your environment
From terminal
Get the last version available on github
LAST_VERSION=$(curl https://api.github.com/repos/danny270793/GoHotReloader/releases/latest | grep tag_name | cut -d '"' -f 4)
Download the last version directly to the binaries folder
For Linux (linux):
curl -L https://github.com/danny270793/GoHotReloader/releases/download/${LAST_VERSION}/GoHotReloader_${LAST_VERSION}_linux_amd64.tar.gz -o ./hotreloader.tar.gz
Untar the downloaded file
tar -xvf ./hotreloader.tar.gz
Then copy the binary to the binaries folder
sudo cp ./GoHotReloader /usr/local/bin/hotreloader
Make it executable the binary
sudo chmod +x /usr/local/bin/hotreloader
hotreloader version
Ussage
Run the binary and pass the binary and the file to re-execute every tima a file changes on the parent folder of the file
hotreloader ./example node ./index.js
Follow me
LICENSE
Licensed under the MIT License
Version
GoHotReloader version 1.0.0
Last update 15/07/2024