Created
December 28, 2023 05:20
-
-
Save c4710n/d3c0e32b61be8a046a3edb471fbfcc36 to your computer and use it in GitHub Desktop.
A simple wrapper to avoid mixing compile logs and formatting output.
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
#!/usr/bin/env bash | |
# | |
# A simple wrapper to avoid mixing compile logs and formatting output. | |
# 1. redirect output to /dev/null | |
# 2. avoid reading input from /dev/stdin, which will be used by `mix format` | |
mix compile > /dev/null 2>&1 </dev/null | |
exec mix format $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment