silt-lang / silt

An in-progress fast, dependently typed, functional programming language implemented in Swift.
MIT License
240 stars 13 forks source link

[NFC] Invert color diagnostics flag #133

Closed CodaFi closed 6 years ago

CodaFi commented 6 years ago

What's in this pull request?

Replace --no-colors with --color-diagnostics. Not as good a UX on the command line, but we spend most of our time writing tests anyways.

CodaFi commented 6 years ago

The frontend can choose to enable colors when we arent executing a verb, but we dont yet provide a full compile job.

CodaFi commented 6 years ago

⛵️

segiddins commented 6 years ago

I wonder if we can be smarter.

could check if stdout / stderr isatty ?