Skip to content

Conversation

@stoivo
Copy link
Collaborator

@stoivo stoivo commented Jun 7, 2024

No description provided.

@stoivo stoivo force-pushed the st-remove-color-if-not-tty branch from 714c06e to cbbb5f9 Compare June 7, 2024 09:01
## [Unreleased]

- Add option to disable color with environment variable "NO_COLOR"
- Default coloring to true if $stdout is terminal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

documenting this in the README too would be nice


## [Unreleased]

- Add option to disable color with environment variable "NO_COLOR"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line should be under a ### Added heading while the next should be under ### Changed

review the keep a changelog link at the top

def self.default_configuration
config = Config.new(colorize: true)

if !ENV["NO_COLOR"].nil? && !ENV["NO_COLOR"].empty?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider a spec for this (in specdiff_spec.rb)

it might be unexpected that NO_COLOR=0 sets color to true

@stoivo
Copy link
Collaborator Author

stoivo commented Jun 7, 2024

With this patch I think CI with stop having colors Maybe we should have some env to force color too?

Screenshot 2024-06-07 at 14 14 25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants