hechoendrupal / drupal-console-core

This project contains commands and features to be shared across DrupalConsole projects.
134 stars 69 forks source link

Enhance ShellProcess #378

Closed mondrake closed 3 years ago

mondrake commented 4 years ago

@enzolutions this is a preliminary PR while working on https://github.com/hechoendrupal/drupal-console/issues/4180

We need to enhance ShellProcess to be able to a) find the executable of 'composer' before running composer require or composer update b) execute the composer processes in TTY mode, the current ::exec method is not enough

In this PR I am proposing to introduce a ::findExecutable and a ::execTty methods.

A PR for https://github.com/hechoendrupal/drupal-console/issues/4180 will follow in the next few days in the hechoendrupal/drupal-console repo.