-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for the --no-color option. #32
Conversation
The `colored` gem was replaced with `colorize`. It has a very similar API but comes with a few extra methods to remove or check colors. The Tabber class has had an options hash added to it, to make further additions easier.
Synx::Tabber.increase(3) | ||
expect(Kernel).to_not receive(:puts) | ||
Synx::Tabber.puts("Hello, world.") | ||
end | ||
|
||
it "should not print colors if no_color is true" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a test for the opposite case, where it prints colors when no_color
is false? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marklarr There isn't, but I'll add one right now!
This is great. Thanks for the PR! |
Thanks @samsymons! |
Add support for the --no-color option.
Thanks @samsymons! This is awesome. 🎈 |
Thanks for the superb gem, happy to be able to contribute! |
👍 |
The
colored
gem was replaced withcolorize
. It has a very similar API but comes with a few extra methods to remove or check colors.The Tabber class has had an options hash added to it, to make further additions easier.
This partially addresses issue #28.