Created
August 29, 2017 01:49
-
-
Save tidwall/1dd8777761f486ab19928c2af27962fc to your computer and use it in GitHub Desktop.
100% code coverage. Keep that shit up!
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
go() { if [[ $@ == "test -cover" ]]; then r="$(command go test -cover)"; if \ | |
[ "$r" != "" ]; then printf "%s\n" "$r"; fi; if [[ "$r" == *"100.0%"* ]]; then \ | |
printf "🎉 \e[1mYou're pretty fucking awesome. Keep that shit up!\e[0m 🎉\n"; \ | |
fi; else command go "$@"; fi } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just put this in your
.bashrc
or.bash_profile
and love yourself a little.