Skip to content
/ icte Public

Simple tool to execute a command when a file(s) or a directory(ies) have a change

License

Notifications You must be signed in to change notification settings

zmalik/icte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

icte

if changes then execute

Simple tool to execute a command when a file(s) or a directory(ies) have a change

The idea is to enable the hot reload

Build Status

Usage

icte file1 directory1/ file2 file3 -c command args

The above command will monitor

  • file1
  • file2
  • file3
  • all files inside the directory1 (recursively)

If any of those files changes it executes the command with the args

Examples:

icte /etc/nginx/nginx.conf -c service nginx reload
icte main.go -c restart.sh

Multiple commands

icte main.go -c build.sh -c restart.sh
icte main.go -c 'grep //TODO main.go -c' -c build.sh -c restart.sh

Install

If you have Go setup in your machine

go install github.com/zmalik/icte

Or

Download the binary from the latest release: https://github.com/zmalik/icte/releases