piotrmurach / tty-command

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

Execute full command strings #5

Closed piotrmurach closed 8 years ago

piotrmurach commented 8 years ago

Actually, that touches on a larger issue. I think it should be possible to just do: cmd.execute("sudo apt-get install xyz > /tmp/output.txt") instead of: cmd.execute(:sudo, "apt-get", "install", ...) This is the most common use case, in my opinion, and supporting this pattern will encourage people to stop using bash to write this stuff.

gurgeous commented 8 years ago

This worked from the beginning, I think you can close it.