Changeset View
Changeset View
Standalone View
Standalone View
src/conduit/ArcanistConduitEngine.php
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | $list = id(new PhutilConsoleList()) | ||||
'Set a default URI with `arc set-config phabricator.uri <uri>`.')) | 'Set a default URI with `arc set-config phabricator.uri <uri>`.')) | ||||
->addItem( | ->addItem( | ||||
pht( | pht( | ||||
'Specify a URI explicitly with `--config phabricator.uri=<uri>`.')); | 'Specify a URI explicitly with `--config phabricator.uri=<uri>`.')); | ||||
$block = id(new PhutilConsoleBlock()) | $block = id(new PhutilConsoleBlock()) | ||||
->addParagraph( | ->addParagraph( | ||||
pht( | pht( | ||||
'This command needs to communicate with Phabricator, but no '. | 'This command needs to communicate with a server, but no '. | ||||
'Phabricator URI is configured.')) | 'server URI is configured.')) | ||||
->addList($list); | ->addList($list); | ||||
throw new ArcanistUsageException($block->drawConsoleString()); | throw new ArcanistUsageException($block->drawConsoleString()); | ||||
} | } | ||||
public static function newConduitEngineFromConduitClient( | public static function newConduitEngineFromConduitClient( | ||||
ConduitClient $client) { | ConduitClient $client) { | ||||
$engine = new self(); | $engine = new self(); | ||||
$engine->client = $client; | $engine->client = $client; | ||||
return $engine; | return $engine; | ||||
} | } | ||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0