function ProcessExecutor::executeTty
runs a process on the commandline in TTY mode
Parameters
string|non-empty-list<string> $command the command to execute:
null|string $cwd the working directory:
Return value
int statuscode
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ ProcessExecutor.php, line 108
Class
- ProcessExecutor
- @author Robert Schönthal <seroscho@googlemail.com> @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Composer\UtilCode
public function executeTty($command, ?string $cwd = null) : int {
if (Platform::isTty()) {
return $this->doExecute($command, $cwd, true);
}
return $this->doExecute($command, $cwd, false);
}