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

Using symbol as command name #10

Closed piotrmurach closed 8 years ago

piotrmurach commented 8 years ago

Any reason to use symbols vs. strings for the command name? Sadly some commands have spaces in them...

piotrmurach commented 8 years ago

You can use both symbol & string, makes no difference. The reason why I provided the examples this way is simply a stage setup for more ruby like syntax. I was intending to add ability to basically run cmd.ls "-la" and the command just do what is intended. Agree it won't work in a lot of cases given complex arguments or executables but it is a nice Ruby-like way to run simple stuff if someone needs to.

gurgeous commented 8 years ago

OK, glad to hear that's supported. Might be worth changing the initial examples to something a bit more script-like, though.

piotrmurach commented 8 years ago

Agree, in usage section we may provide simple string example(s) and in execute part show more possibilities. PR welcome!

gurgeous commented 8 years ago

Let's close this and create a new issue that's specific to README