xwp / wp-cli-ssh

[OBSOLETE] Seamlessly run WP-CLI commands on a remote server via SSH
157 stars 14 forks source link

First draft command #5

Closed jonathanbardo closed 10 years ago

jonathanbardo commented 10 years ago

@westonruter Here is the first draft for the command wp cli ssh.

One can invoke wp ssh core version --host=vagrant and it will forward to the specified host.

We can also create an alias for wp to forward by default to vagrant:

alias wpssh = 'wp ssh --host=vagrant'

I used a reflection class to prevent having copy-pasted core function. This should be temporary.

This should close #4.

westonruter commented 10 years ago

@jonathanbardo if I invoke just wp ssh --host-vagrant, I would expect to get the help screen which you'd get if you just typed wp

jonathanbardo commented 10 years ago

It works for me. Have you remove your wp alias in your bash_rc ?

westonruter commented 10 years ago

@jonathanbardo yeah, it works for me too. Not sure what I missed.