Skip to content
/ dogo Public

Monitoring changes in the source file and automatically compile and run (restart).

License

Notifications You must be signed in to change notification settings

liudng/dogo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 2, 2016
7887b84 · Nov 2, 2016

History

41 Commits
Aug 14, 2015
Feb 24, 2015
Sep 24, 2015
Nov 20, 2014
Feb 5, 2015
Feb 5, 2015
Feb 5, 2015
Oct 31, 2016
Sep 24, 2015
Aug 13, 2015
Sep 6, 2016
Sep 24, 2015
Jun 22, 2015
Aug 13, 2015
Sep 24, 2015
Aug 13, 2015
Feb 13, 2015

Repository files navigation

dogo

Build Status Coverage License

Monitoring changes in the source file and automatically compile and run (restart).

中文

Install

go get github.com/liudng/dogo

Create config

Here's a config file sample, save the file as dogo.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:

dogo

or, specify a config file with -c

dogo -c=/path/to/dogo.json

the path can contain {GOPATH}.

screen capture

windows screen