Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liudng/doGo
Monitoring changes in the source file and automatically compile and run (restart).
https://github.com/liudng/doGo
build-tool devops file-watchers filewatcher inotify monitor-changes monitoring watchfolder windows-api
Last synced: about 2 months ago
JSON representation
Monitoring changes in the source file and automatically compile and run (restart).
- Host: GitHub
- URL: https://github.com/liudng/doGo
- Owner: liudng
- License: other
- Created: 2014-11-19T10:16:35.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T05:14:19.000Z (almost 6 years ago)
- Last Synced: 2024-08-01T19:42:22.980Z (5 months ago)
- Topics: build-tool, devops, file-watchers, filewatcher, inotify, monitor-changes, monitoring, watchfolder, windows-api
- Language: Go
- Homepage:
- Size: 3.07 MB
- Stars: 266
- Watchers: 20
- Forks: 45
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dogo
[![Build Status](https://travis-ci.org/liudng/dogo.svg)](https://travis-ci.org/liudng/dogo)
[![Coverage](http://gocover.io/_badge/github.com/liudng/dogo)](http://gocover.io/github.com/liudng/dogo)
[![License](https://img.shields.io/badge/license-BSD-blue.svg?style=flat)](https://github.com/liudng/dogo/blob/master/LICENSE)Monitoring changes in the source file and automatically compile and run (restart).
[中文](doc/zh/README.md)
## Install
```bash
go get github.com/liudng/dogo
```## Create config
Here's a config file sample, save the file as **dogo.json**:
```json
{
"WorkingDir": "{GOPATH}/src/github.com/liudng/dogo/example",
"SourceDir": [
"{GOPATH}/src/github.com/liudng/dogo/example"
],
"SourceExt": [".c", ".cpp", ".go", ".h"],
"BuildCmd": "go build github.com/liudng/dogo/example",
"RunCmd": "example.exe",
"Decreasing": 1
}
```**WorkingDir**: working directory, dogo will auto change to this directory.
**SourceDir**: the list of source directories.
**SourceExt**: monitoring file type.
**BuildCmd**: the command of build and compile.
**RunCmd**: the program (full) path.
**Decreasing**: Ignore the number of modifies, it's only start counting after build success. Now it's supported in linux and windows.
## Start monitoring
type the command to start:
```sh
dogo
```or, specify a config file with -c
```sh
dogo -c=/path/to/dogo.json
```the path can contain {GOPATH}.
## screen capture
![windows screen](doc/en/img/screen2.png)