Skip to content

Commit

Permalink
feat: making pending status more prominent in console output
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed May 11, 2020
1 parent ed945a6 commit 7d33369
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ data class HeaderMismatch(
val actual: String,
val mismatch: String
) : Mismatch() {
val regex = Regex("'[^']*'")
override fun description() = mismatch
override fun description(t: TermColors): String {
return mismatch.replace(regex) { m -> t.bold(m.value) }
}

fun merge(mismatch: HeaderMismatch): HeaderMismatch {
return if (this.mismatch.isNotEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class AnsiConsoleReporter(
out += " for tag ${t.bold(tag)}"
}
if (consumer.pending) {
out += " [PENDING]"
out += t.yellow(" [PENDING]")
}
println(out)
}
Expand Down

0 comments on commit 7d33369

Please sign in to comment.