Skip to content

Commit

Permalink
Merge pull request #192 from YusukeHosonuma/fix/colored-log
Browse files Browse the repository at this point in the history
  • Loading branch information
sahara-ooga committed May 20, 2022
2 parents 0c8dede + 7582ec5 commit 1ad0d60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/Public/Pretty.swift
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,10 @@ extension Pretty {
option: Option
) {
let plainString = printer(label, targets, separator, option)
let coloredString = printer(label, targets, separator, option)

var coloredOption = option
coloredOption.colored = true
let coloredString = printer(label, targets, separator, coloredOption)

// Console
Swift.print(option.colored ? coloredString : plainString)
Expand Down

0 comments on commit 1ad0d60

Please sign in to comment.