function Svn::getCommand
A method to create the svn commands run.
Parameters
non-empty-list<string> $cmd Usually 'svn ls' or something like that.:
string $url Repo URL.:
string $path Target for a checkout:
Return value
non-empty-list<string>
1 call to Svn::getCommand()
- Svn::executeWithAuthRetry in vendor/
composer/ composer/ src/ Composer/ Util/ Svn.php
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ Svn.php, line 221
Class
- Svn
- @author Till Klampaeckel <till@php.net> @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Composer\UtilCode
protected function getCommand(array $cmd, string $url, ?string $path = null) : array {
$cmd = array_merge($cmd, [
'--non-interactive',
], $this->getCredentialArgs(), [
'--',
$url,
]);
if ($path !== null) {
$cmd[] = $path;
}
return $cmd;
}