https://github.com/zmalik/icte
Simple tool to execute a command when a file(s) or a directory(ies) have a change
https://github.com/zmalik/icte
files go hot-reload monitor
Last synced: 9 months ago
JSON representation
Simple tool to execute a command when a file(s) or a directory(ies) have a change
- Host: GitHub
- URL: https://github.com/zmalik/icte
- Owner: zmalik
- License: apache-2.0
- Created: 2018-05-19T11:51:59.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-20T22:02:29.000Z (about 8 years ago)
- Last Synced: 2025-06-15T02:42:03.324Z (12 months ago)
- Topics: files, go, hot-reload, monitor
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.MD
- License: LICENSE
Awesome Lists containing this project
README
# 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
[](https://travis-ci.com/zmalik/icte)
## 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:
```bash
icte /etc/nginx/nginx.conf -c service nginx reload
```
```bash
icte main.go -c restart.sh
```
**Multiple commands**
```bash
icte main.go -c build.sh -c restart.sh
```
```bash
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: