# dogo **Repository Path**: liudng/dogo ## Basic Information - **Project Name**: dogo - **Description**: Monitoring changes in the source file and automatically compile and run (restart). - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 11 - **Forks**: 5 - **Created**: 2014-12-05 - **Last Updated**: 2021-10-08 ## Categories & Tags **Categories**: ci **Tags**: DevTool ## 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) [![GoDoc](https://godoc.org/github.com/liudng/dogo?status.png)](http://godoc.org/github.com/liudng/dogo) Monitoring changes in the source file and automatically compile and run (restart). [中文](README-ZH.md) ## Install ```bash go get github.com/liudng/dogo ``` ## Create config Here are config file sample, save file as **dogo.json**: ```json { "WorkingDir": "{GOPATH}/src/github.com/liudng/dogo/example", "SourceDir": [ "{GOPATH}/src/github.com/liudng/dogo/example" ], "SourceExt": ".go|.c|.cpp|.h", "BuildCmd": "go build github.com/liudng/dogo/example", "RunCmd": "example.exe" } ``` **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. ## Start monitoring type the command to start: ```sh dogo ``` or, specify config file with -c ```sh dogo -c=/path/to/dogo.json ``` the path can contain {GOPATH}. ## screen capture ![windows screen](screen2.png)