piotrmurach / tty-command

Execute shell commands with pretty output logging and capture stdout, stderr and exit status.
https://ttytoolkit.org
MIT License
400 stars 34 forks source link

Reduce line prefix when logging command output #4

Closed piotrmurach closed 8 years ago

piotrmurach commented 8 years ago

That output is awesome. Any reason to include the random # in the line prefix? I'd think the pid would be enough and it would be great to reduce noise.

piotrmurach commented 8 years ago

I agree the uuid should probably be shorter. I have followed the same principle that is used for creating tempfile names in ruby, though I'm not sure that PID is the one I will choose as you can run many commands and they all may run in the same process but it would be good to have unique identifiers per command executed. Also, I want to provide ability to specify different printers apart from the current one such that skip printing the uuid all together and still colour the output.