Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused param and only set tty when we can #5310

Merged
merged 4 commits into from
Nov 11, 2022
Merged

Conversation

weitzman
Copy link
Member

@weitzman weitzman commented Nov 11, 2022

Fixes a Drupal 10 test failure "TTY mode requires /dev/tty to be read/writable."
@@ -49,7 +50,10 @@ public function ssh(array $code, $options = ['cd' => self::REQ, 'tty' => false])
}

$process = $this->processManager()->siteProcess($alias, $code);
$process->setTty($options['tty']);
if (Tty::isTtySupported()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still need to allow the user to select whether a TTY is desired or not. The other end of the connection might not support TTYs. I think that the tty CLI option should be preserved, and the $process->setTty($options['tty']); should merely be wrapped in if (Tty::isTtySupported()) {

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right. I pushed a commit which does this.

The $options for ssh method did not need to declare 'tty' key since thats done by @optionset_proc_build

Copy link
Member

@greg-1-anderson greg-1-anderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please retain tty flag

@weitzman weitzman merged commit 7833d00 into drush-ops:11.x Nov 11, 2022
@weitzman weitzman deleted the tty branch November 11, 2022 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants