1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 00:42:33 +03:00

Colourize --show output for terminals.

This commit is contained in:
Rob Rix 2018-08-23 14:10:04 -04:00
parent 35c1cef725
commit 3e8a87968e

View File

@ -187,7 +187,7 @@ runTaskF = interpret $ \ task -> case task of
Semantic.Task.Diff terms -> pure (diffTermPair terms)
Render renderer input -> pure (renderer input)
Serialize format input -> do
formatStyle <- asks (bool Colourful Plain . configIsTerminal)
formatStyle <- asks (bool Plain Colourful . configIsTerminal)
pure (runSerialize formatStyle format input)