https://github.com/jakolehm/nightwatch
A command line tool to easily handle events on file system modifications
https://github.com/jakolehm/nightwatch
Last synced: 2 months ago
JSON representation
A command line tool to easily handle events on file system modifications
- Host: GitHub
- URL: https://github.com/jakolehm/nightwatch
- Owner: jakolehm
- License: mit
- Created: 2020-02-20T16:55:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-03T10:29:32.000Z (about 5 years ago)
- Last Synced: 2025-04-06T15:58:53.616Z (2 months ago)
- Language: Go
- Homepage:
- Size: 601 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nightwatch
Nightwatch is a command line tool to easily handle events on file system modifications.
## Download & Docker
Download `nightwatch` from [releases](https://github.com/jakolehm/nightwatch/releases) page. Linux (amd64, arm64, armhf), MacOS and Windows are supported.
COPY for Dockerfile:
```
COPY --from=jakolehm/nightwatch-amd64:1.3 /nightwatch /usr/bin
```
or
```
COPY --from=jakolehm/nightwatch-arm64:1.3 /nightwatch /usr/bin
```## Example Usage
#### Using `--find-cmd`:
```
$ nightwatch --find-cmd "find *.js" node app.js
```#### Using `--files`:
```
$ nightwatch --files "package.json,src/" node app.js
```#### Via `STDIN`:
```
$ find *.js | nightwatch node app.js
```## Building From Source
```
$ make build
```## Testing
```
cd examples/bash
nightwatch --debug simple.sh
```## Testing with docker-compose
```
cd examples
docker-compose build
docker-compose run example nightwatch --debug bash/simple.sh
```