This repository has been archived by the owner on Aug 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check if the output supports colors (fixes #244)
This avoids using colors when the output is, e.g., redirected to a file. This requried a change to avoid passing the `--colour` flag to shake (so that hadrian is in charge of colors). I've also made minor changes to the colors themselves, opting to use the standard colors (not the bright/vivid ones, otherwise we risk that for some configurations this will be less readable). Finally, I've changed the color for `putBuild` - using white foreground color is problematic (this was not a problem before due to passing the `--color` flag to shake that was forcing different color). Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
- Loading branch information
Showing
5 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,5 +55,4 @@ popd | |
"$root/.shake/build" \ | ||
--lint \ | ||
--directory "$root/.." \ | ||
--colour \ | ||
"$@" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,5 +43,4 @@ fi | |
cabal run hadrian -- \ | ||
--lint \ | ||
--directory "$absoluteRoot/.." \ | ||
--colour \ | ||
"$@" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,5 +49,4 @@ ghc \ | |
"$root/hadrian" \ | ||
--lint \ | ||
--directory "$root/.." \ | ||
--colour \ | ||
"$@" |
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
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