https://github.com/mattheusv/fwatch
Execute command when file changes
https://github.com/mattheusv/fwatch
Last synced: 4 months ago
JSON representation
Execute command when file changes
- Host: GitHub
- URL: https://github.com/mattheusv/fwatch
- Owner: mattheusv
- License: mit
- Created: 2020-07-22T22:20:36.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-23T22:44:39.000Z (almost 5 years ago)
- Last Synced: 2025-03-06T03:14:58.066Z (4 months ago)
- 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
# fwatch
  Utility to execute command when file changes
## Usage
Watch current directory and execute ls when some file change:
```bash
$ fwatch ls
```Watch custom directory:
```bash
$ fwatch -dir /path/to/directory ls
```Ignore pattern files:
```bash
fwatch -ignore "*_test.go,*.test.js" ls
```Execute command to only specific pattern:
```bash
$ fwatch -pattern "*.go,**.js*" ls
```Verbose mode:
```
$ fwatch -V ls
```Help:
```bash
fwatch -h
```## License
[MIT](https://github.com/msAlcantara/fwatch/blob/master/LICENSE)