Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ProcessExecutor.php

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\Util

Code

public function executeTty($command, ?string $cwd = null) : int {
    if (Platform::isTty()) {
        return $this->doExecute($command, $cwd, true);
    }
    return $this->doExecute($command, $cwd, false);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal