Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistWorkflow.php
| Show First 20 Lines • Show All 2,134 Lines • ▼ Show 20 Lines | protected function openURIsInBrowser(array $uris) { | ||||
| foreach ($uris as $uri) { | foreach ($uris as $uri) { | ||||
| $err = phutil_passthru('%LR %R', $browser, $uri); | $err = phutil_passthru('%LR %R', $browser, $uri); | ||||
| if ($err) { | if ($err) { | ||||
| throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
| pht( | pht( | ||||
| 'Failed to open URI "%s" in browser ("%s"). '. | 'Failed to open URI "%s" in browser ("%s"). '. | ||||
| 'Check your "browser" config option.', | 'Check your "browser" config option.', | ||||
| $uri, | $uri, | ||||
| $browser)); | implode(' ', $browser))); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| private function getBrowserCommand() { | private function getBrowserCommand() { | ||||
| $config = $this->getConfigFromAnySource('browser'); | $config = $this->getConfigFromAnySource('browser'); | ||||
| if ($config) { | if ($config) { | ||||
| return $config; | return $config; | ||||
| ▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines | |||||