Skip to content
/ gohawk Public

A shell script that can may be combined with fswatch to automatically build a golang program

Notifications You must be signed in to change notification settings

vgarg/gohawk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Summary

A shell script that may be combined with fswatch on Mac OS X to watch a golang project for changes. Upon changes, the program is stopped, compiled and restarted

Usage with fswatch

fswatch /your/go/src/dir/to/watch "gohawk.sh yourcmd"

Example assumes both fswatch and gowatch.sh are in the PATH. This example does the following:

  • fswatch watches /your/go/src/dir/to/watch directory for any changes e.g. file saves
  • Upon detecting changes, fswatch invokes the gohawk.sh yourcmd
  • gohawk.sh in-turn stops, installs, runs and tests the yourcmd

Credits

Inspired by gowatcher for Linux.

About

A shell script that can may be combined with fswatch to automatically build a golang program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages