gomon

command module
v0.0.0-...-f772fb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2018 License: MIT Imports: 16 Imported by: 0

README

gomon

go source file monitor, which restarts/rebuilds your go package automatically while you are changing it.

What's the difference?

The original version didn't kill the child process correctly and it stops when the child process is in infinite loop. This version can kill the child process correctly even in infinite loop.

Also I removed the most of the options because I don't use them and only specify custom command.

Install

go get -u github.com/honteng/gomon

Usage

gomon [dir] -- [cmd]

Monitoring With Custom Command:

gomon src -- go run -x server.go # execute go run -x server.go
gomon src -- go build -x package # execute go build -x package

Recursively check the subfolders

gomon src -R -- go run -x server.go

Only watch the mached files with regex

gomon src -m '.*go' -- cmd 

Ignore the specific file gomon src -d 'ignore.go' -- cmd

gomon src -d 'ignore.go' -- cmd 

Screenshot

Todo

  • Add configration file support.
  • Command queue support.

GoTray http://gotray.extremedev.org/

Contributors

  • Ask Bjørn Hansen
  • Yasuhiro Matsumoto (a.k.a mattn)

License

MIT License

Bitdeli Badge

Bitdeli Badge

Documentation

Overview

+build darwin,!cgo

Directories

Path Synopsis
+build darwin,!cgo
+build darwin,!cgo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL