Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistCallConduitWorkflow.php
Show All 9 Lines | final class ArcanistCallConduitWorkflow | ||||
public function getWorkflowInformation() { | public function getWorkflowInformation() { | ||||
$help = pht(<<<EOTEXT | $help = pht(<<<EOTEXT | ||||
Allows you to make a raw Conduit method call: | Allows you to make a raw Conduit method call: | ||||
- Run this command from a working directory. | - Run this command from a working directory. | ||||
- Call parameters are required, and read as a JSON blob from stdin. | - Call parameters are required, and read as a JSON blob from stdin. | ||||
- Results are written to stdout as a JSON blob. | - Results are written to stdout as a JSON blob. | ||||
This workflow is primarily useful for writing scripts which integrate | This workflow is primarily useful for writing scripts. Examples: | ||||
with Phabricator. Examples: | |||||
$ echo '{}' | arc call-conduit -- conduit.ping | $ echo '{}' | arc call-conduit -- conduit.ping | ||||
$ echo '{"phid":"PHID-FILE-xxxx"}' | arc call-conduit -- file.download | $ echo '{"phid":"PHID-FILE-xxxx"}' | arc call-conduit -- file.download | ||||
EOTEXT | EOTEXT | ||||
); | ); | ||||
return $this->newWorkflowInformation() | return $this->newWorkflowInformation() | ||||
->setSynopsis(pht('Call Conduit API methods.')) | ->setSynopsis(pht('Call Conduit API methods.')) | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |