watch file and reload a command on file reload
Want to see pretty graphs? Log in now!
npm install reload-cli
|8||downloads in the last week|
|17||downloads in the last month|
|Last Published By|
|Version||0.0.3 last updated 8 months ago|
|Keywords||reload, linux, command|
Reload CLI: A command to reload your command when file changes.
npm install -g reload-cli echo complete -o filenames -F _root_command reload >> ~/.bashrc
You may need
sudo to run
The second line is to make auto-completion work.
test/ directory, there a readline demo, you can try:
cd test/ node-dev ../bin/reload.js coffee readline.coffee
reload-cli works with readline, but there's bug while used for Haskell scripts.
I'll update this when I solve this.
reload python script.py b.py
For example, you want to run
python file.py b.py frequently
to see the result, as you write the script.
reload will read the paramaters as
if the paramater points to a file,
reload will watch it.
Then, the command restarts when file changes are caught.