allow remote binary customization#6013
Conversation
|
I don't use this feature so this is more just a comment, but the existing documentation already recommends using an alias for
So that case of "let the remote user specify what wp is" seems already covered by existing practices. |
non-interactive mode is not firing a "login-shell". |
|
This is covered in the sections above on that same link: Mostly just trying to gauge if this addresses a real problem that in some cases isn't possible with current advice -- ie: is there a situation where you can set an ENV var on remote but can't do the steps above? Or if it is just another way to accomplish that. |
|
It addresses the problem in a way that doesn't need any hook nor modification on the remote server (like
(and the diff in the codebase is just one-line) |
8dddec7 to
beb9b8a
Compare
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
|
I think Suggesting because these should also end up documented here in the list of all available ENV Vars that WP CLI supports and every other use of |
|
I'm fine renaming it for whatever gets your preference. Just let me know. |
|
|
…o `sudo -u user /some/wp` would also allow running remote `wp-cli` under a distinct user
ff9677b to
6c736ef
Compare
Could be set to use
/custom/path/wpon the remote end but alsosudo -u user /some/wpto allow running wp under a distinct user.See also #5974