hasanen / wpcli

Simple wrapper for wp-cli (http://wp-cli.org/).
MIT License
5 stars 1 forks source link

No error signaling #4

Open sheldonh opened 6 years ago

sheldonh commented 6 years ago

The client's run method doesn't signal an error in any way. For example

irb(main):009:0> wp.run "plugins list"
Error: 'wp-config.php' not found.
Either create one manually or use `wp config create`.
=> []

Without capturing the error output in some way, I can't programmatically distinguish an error from there just being no plugins installed.

It would be great if an exception were raised instead.

hasanen commented 6 years ago

Hi

Unfortunately this gem is not maintained anymore. If you can do a PR regarding this, I'm more than happy to merge and release it.