Platformsh\Cli\Helper\ShellHelper::resolveCommand PHP Method

resolveCommand() public method

public resolveCommand ( $command )
    public function resolveCommand($command)
    {
        if ($fullPaths = $this->findWhere($command)) {
            $fullPaths = preg_split('/[\\r\\n]/', trim($fullPaths));
            $command = end($fullPaths);
        }
        return $command;
    }