Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thimc/watch
watch runs commands whenever files change
https://github.com/thimc/watch
cli cross-platform unix watch-files
Last synced: 1 day ago
JSON representation
watch runs commands whenever files change
- Host: GitHub
- URL: https://github.com/thimc/watch
- Owner: thimc
- License: mit
- Created: 2024-06-23T11:46:30.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-03T17:00:24.000Z (12 days ago)
- Last Synced: 2024-11-03T17:31:35.494Z (12 days ago)
- Topics: cli, cross-platform, unix, watch-files
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Watch
Watch runs a command each time a set of files changes. Watch is a
clone of the [9fans/go Watch
tool](https://github.com/9fans/go/blob/main/acme/Watch/main.go) but
is made to work outside of Acme.There are some differences between the 9fans/go Watch tool and this
tool, instead of relying on the current working directory to find
files to monitor, the user needs to specify (with globbing support)
which files to specifically watch. Another difference is the notion
of an unescaped `%` in the arguments list which is substituted with
file path of the file that was changed.Watch may not be as efficient as it could be (using syscalls) but is
written so that it is as simple and cross-platform as possible.## Usage
watch '*.go' go run %
## License
MIT