sharat87 / ti

A simple command line time tracker.
http://ti.sharats.me
122 stars 68 forks source link

Colorize task names #9

Closed MattHulse closed 10 years ago

MattHulse commented 10 years ago

I find it very helpful to colorize task names. Especially when there are spaces in the task name. I use red for a task that is stopping, green for a task that is starting, and yellow for some other cases.

sharat87 commented 10 years ago

This is a nice idea. But it makes the tests unwieldy. Lets not test the color output. I propose an environment variable like TI_NO_COLOR or a command line argument like --no-color which will suppress colored output and can be used in the tests. I'll see if I can cherry-pick your commit as you have both the main changes and tests in the same commit. Or, if you have the time to make a new PR, do let me know.

Thanks again.