diff options
author | Alexander Foremny <aforemny@posteo.de> | 2023-12-03 13:29:00 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2023-12-03 13:29:00 +0100 |
commit | 32c76fb1f411896a4727ba2a76cdfc9dcd3dc48a (patch) | |
tree | 9237f6dcd3c165d864861ab9533c0ed4a093d2a7 /app/Main.hs | |
parent | 22c71e24edc8655f15c8dba02244b8e6d059da5c (diff) |
feat: color patches
Diffstat (limited to 'app/Main.hs')
-rw-r--r-- | app/Main.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Main.hs b/app/Main.hs index 6f96aa5..8d785be 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -398,6 +398,7 @@ import Issue.Sort qualified as I import Issue.Tag qualified as I import Options.Applicative ((<**>)) import Options.Applicative qualified as O +import Patch qualified as P import Prettyprinter ((<+>)) import Prettyprinter qualified as P import Prettyprinter.Render.Terminal qualified as P @@ -670,7 +671,9 @@ main = do IssueDeleted {issue} -> shortHash <+> kwd "deleted" <+> title issue ) - <+> if patch then P.pretty e.patch else P.emptyDoc + <+> if patch + then P.hardline <> P.render e.patch + else P.emptyDoc ) es' ) |