You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow stdin to be redirected to ssh command (#6275)
* Allow stdin to be redirected to ssh command
As described in #6274, stdin is currently not redirected to ssh command.
With this change the command is adapted to be consistent with `sql:cli` and stdin is redirected.
* Add usage info / test todo for stdin redirection (#6274)
* Update src/Commands/core/SshCommands.php
---------
Co-authored-by: Leo von Klenze <[email protected]>
Co-authored-by: Moshe Weitzman <[email protected]>
#[CLI\Usage(name: 'drush @prod ssh "git pull"', description: 'Run <info>git pull</info> on the Drupal root directory on the <info>@prod</info> site.')]
39
42
#[CLI\Usage(name: 'drush ssh "git pull"', description: 'Run <info>git pull</info> on the local Drupal root directory.')]
43
+
#[CLI\Usage(name: 'echo \'Deny from all\' | drush @prod ssh "tee > do-not-expose-dir/.htaccess"', description: 'Protect directory <info>do-not-expose-dir</info> from being served by Apache httpd.')]
0 commit comments