Created
May 7, 2020 16:39
-
-
Save venkatd/ab5ff54b69a52d951ba352d4fc1d53f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
OUTPUT_PATH=${1:-~/bin/tdev} | |
echo "Compiling $PWD to $OUTPUT_PATH whenever a *.go file changes..." | |
fswatch -e “.*” -i “\\.go$” . | xargs -n1 -I{} go build -v -o $OUTPUT_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment