Skip to content

Instantly share code, notes, and snippets.

@tidwall
Created August 29, 2017 01:49
Show Gist options
  • Save tidwall/1dd8777761f486ab19928c2af27962fc to your computer and use it in GitHub Desktop.
Save tidwall/1dd8777761f486ab19928c2af27962fc to your computer and use it in GitHub Desktop.
100% code coverage. Keep that shit up!
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 }
@tidwall
Copy link
Author

tidwall commented Aug 29, 2017

Just put this in your .bashrc or .bash_profile and love yourself a little.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment