Skip to content

Commit

Permalink
Support NO_COLOR
Browse files Browse the repository at this point in the history
  • Loading branch information
jvican committed Jul 3, 2018
1 parent 4ce486f commit ff6f17a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/src/main/scala/bloop/Cli.scala
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,14 @@ object Cli {

val commonOpts = cliOptions.common
val configDirectory = getConfigDir(cliOptions)
val logger =
BloopLogger.at(configDirectory.syntax, commonOpts.out, commonOpts.err, cliOptions.verbose, !cliOptions.noColor)
val logger = BloopLogger.at(
configDirectory.syntax,
commonOpts.out,
commonOpts.err,
cliOptions.verbose,
!(cliOptions.noColor || commonOpts.env.containsKey("NO_COLOR"))
)

val currentState = State.loadActiveStateFor(configDirectory, pool, cliOptions.common, logger)

if (Files.exists(configDirectory.underlying)) {
Expand Down

0 comments on commit ff6f17a

Please sign in to comment.