https://github.com/mattheusv/gowatch
watch for .go files changes and rebuild automaticaly
https://github.com/mattheusv/gowatch
Last synced: 4 months ago
JSON representation
watch for .go files changes and rebuild automaticaly
- Host: GitHub
- URL: https://github.com/mattheusv/gowatch
- Owner: mattheusv
- License: mit
- Created: 2019-09-19T02:32:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-05T03:05:13.000Z (over 5 years ago)
- Last Synced: 2025-03-06T03:14:58.103Z (4 months ago)
- Language: Go
- Homepage:
- Size: 71.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gowatch [](https://travis-ci.org/msalcantara/gowatch) [](https://coveralls.io/github/msAlcantara/gowatch?branch=master)
gowatch is a tool to watch for .go files changes and rebuild automaticaly
## Installation
```bash
$ go get -u github.com/msalcantara/gowatch/cmd/gowatch
```## Usage
In you project path just type gowatch```
$ gowatch
```For help use `-h`or `--help`
```
$ gowatch -h
```For version
```
$ gowatch --version
```Pass arguments to your app
```
$ gowatch apparg1 apparg2
```Or
```
$ gowatch --run-flags="-c file_config.conf"
```Use custon args to `go build` command
```
$ gowatch --build-flags=-x,-v
```Watch custon directory (default is current)
```
$ gowatch -d ./custon/path
```gowatch restart in any .go files changes. To ignore some pattern of files use:
```
$ gowatch -i *_test.go
```To show debug info of gowatch
```
$ gowatch -V
```## Default Config
To use an default config, create a file called `.gowatch.yml` or use `--config` flag to pass a different file name. CLI flags override values of the file.
This file can have any flag that CLI accept.
```yaml
verbose: truedir: .
ignore:
- "*_test.go"build_flags:
- -x
- -vrun_flags:
- localhost
- 8000```
## License
[MIT](https://github.com/msAlcantara/gowatch/blob/master/LICENSE)