Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

Conversation

@BrennanConroy
Copy link
Member

@ghost ghost added the cla-not-required label Apr 28, 2015
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think parse is the right term here. Maybe useColors or something on those lines would be more appropriate

@victorhurdugaci
Copy link
Contributor

Looks good overall, except the places where I commented. :shipit:

@BrennanConroy BrennanConroy force-pushed the brecon/crossplat_color branch 2 times, most recently from 20698ee to 7ffe15e Compare April 28, 2015 16:04
@BrennanConroy
Copy link
Member Author

@victorhurdugaci
Made changes, take a quick look?

Copy link
Contributor

Choose a reason for hiding this comment

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

Naming convention for fields: _camelCaseName

@BrennanConroy BrennanConroy force-pushed the brecon/crossplat_color branch from 7ffe15e to bda2b60 Compare April 28, 2015 17:35
@victorhurdugaci
Copy link
Contributor

looks good. :shipit:

Copy link
Contributor

Choose a reason for hiding this comment

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

Designwise, I don't think we should cache _output and _error here. These are static field and the value depends on runtimeEnv. It will probably work fine now if runtimeEnv does not change but if for whatever reason GetOutput() was called multiple times with different runtimeEnv value the returned value for the second call would be wrong because it would use runtimeEnv from the first call. I think the GetOutput and GetError should just create and return the value and the code that invokes these methods should take care of caching the returned instance if it makes sense.

@BrennanConroy
Copy link
Member Author

@davidfowl
Is this more like what you want?

@BrennanConroy BrennanConroy force-pushed the brecon/crossplat_color branch from 6c8c310 to 32e295c Compare April 28, 2015 23:21
Copy link
Contributor

Choose a reason for hiding this comment

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

Format: space after if

@troydai
Copy link
Contributor

troydai commented Apr 29, 2015

:shipit: after format the code.

@BrennanConroy BrennanConroy force-pushed the brecon/crossplat_color branch 2 times, most recently from c2cbea5 to 1a2460d Compare April 29, 2015 17:22
@moozzyk
Copy link
Contributor

moozzyk commented Apr 29, 2015

Agree with @davidfowl that useAnsiCodes sounds weird but otherwise 🐑🇮🇹

@BrennanConroy
Copy link
Member Author

He suggested useAnsiCodes >.>

@davidfowl
Copy link
Member

Why is the build failing?

@BrennanConroy BrennanConroy force-pushed the brecon/crossplat_color branch 2 times, most recently from a88b6c9 to 9998e35 Compare April 29, 2015 18:40
Copy link
Member

Choose a reason for hiding this comment

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

This name doesn't feel right. You are using ansiCodes either way, just processing them differently. It is more like ansiCodePassthrough, but given that nobody knows what that means and this is internal it doesn't worry me too much.

Copy link
Member

Choose a reason for hiding this comment

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

This changes the behaviour of this does it not? Previously everyone who called this would've gotten the same instance. Now they will all get a different one. Not sure it matters, but it is a thing. @davidfowl?

@BrennanConroy BrennanConroy force-pushed the brecon/crossplat_color branch from 9998e35 to c73a8db Compare May 2, 2015 01:03
@davidfowl
Copy link
Member

:shipit:

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants