Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mununki/gw
A Wrapper of a command to watch any changes in filesystem
https://github.com/mununki/gw
command filesystem go golang nodemon wrapper
Last synced: about 2 months ago
JSON representation
A Wrapper of a command to watch any changes in filesystem
- Host: GitHub
- URL: https://github.com/mununki/gw
- Owner: mununki
- Created: 2019-05-09T08:52:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-14T06:53:56.000Z (about 3 years ago)
- Last Synced: 2024-06-20T14:22:07.292Z (6 months ago)
- Topics: command, filesystem, go, golang, nodemon, wrapper
- Language: Go
- Homepage:
- Size: 2.91 MB
- Stars: 16
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GW (Go Watcher)
## Stacks
- Built in Go
## Features
A Wrapper of a command to watch any changes in filesystem, then re-run the command again. Especially, when you are developing a backend API, you need to run again your API very often, every time you edit a code. `GW` will automatically run your API again for you.
## Demo
![demo](/demo/gw_demo.gif)
## How to use
```shell
$ gw [COMMAND arg1, arg2, ...]
```e.g.
```shell
$ gw go run server.go
** Ctrl-C to exit **
2019/05/12 00:01:00 Listening to the port 8080...# any changes in filesystem
Tyring to run the command...
2019/05/12 00:01:10 Listening to the port 8080...
```- for Node.js
**You can use gw instead of `nodemon`.**
```shell
$ gw node server.js
** Ctrl-C to exit **
Listening to port 4000# any changes in filesystem
Tyring to run the command...
Listening to port 4000
```> gw excludes to watch the `node_modules` directory.
## How to install
### Homebrew
```shell
$ brew install mattdamon108/tools/gw
```### Using `go get`
```shell
$ go get -u github.com/mattdamon108/gw
```### Build with the source code
1. Git clone
```shell
$ git clone https://github.com/mattdamon108/gw.git
```2. Build & Install
```shell
$ go install
```## Next to do
- [ ] error handling
- [ ] reduce unnecessary re-runs