gohotreloader

command module
v0.0.0-...-cb4ef2a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 5 Imported by: 0

README

HotReloader

goreleaser

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL