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

Ability to turn off warning when no pseudo terminal is found #45

Closed thisismydesign closed 6 years ago

thisismydesign commented 6 years ago

Hi,

I've noticed that the following message is printed when using the pty: true option on Windows: Requested PTY device but the system doesn't support it. This makes sense and the graceful fallback mentioned in the readme happens.

However the message is

Therefore it'd be great to have an option to turn off this message.

piotrmurach commented 6 years ago

Agree. I would suggest verbose option which is turned on by default? The warning could be expanded to advise a user that they need to disable this flag in order for the message to go. Can you cook up a PR?

thisismydesign commented 6 years ago

Thanks! Don't hold your breath but I'll cook up something soon-ish. :)

thisismydesign commented 6 years ago

Thanks :)