]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Improve documentation for 'arc call-conduit'
authorepriestley <git@epriestley.com>
Thu, 23 Jun 2011 00:52:37 +0000 (17:52 -0700)
committerepriestley <git@epriestley.com>
Thu, 23 Jun 2011 20:15:28 +0000 (13:15 -0700)
Summary:
This documentation isn't terribly clear and it isn't obvious how to use the
workflow. Make it more clear and provide examples.

Test Plan:
Ran "arc help call-conduit"

Reviewed By: gc3
Reviewers: gc3, aran, jungejason
CC: aran, gc3, epriestley
Differential Revision: 502

src/workflow/call-conduit/ArcanistCallConduitWorkflow.php

index 47998c14dbc6a74cf61c4636a1d7bdb2c06875b0..c836f181440c67feeb7a97268ad112a99a9df571 100644 (file)
@@ -27,10 +27,18 @@ class ArcanistCallConduitWorkflow extends ArcanistBaseWorkflow {
     return phutil_console_format(<<<EOTEXT
       **call-conduit** __method__
           Supports: http, https
-          Allows you to make a raw Conduit method call. Call parameters are read
-          as a JSON blob from stdin. Results are written to stdout as a JSON
-          blob. This workflow is primarily useful for writing scripts which
-          integrate with Phabricator.
+          Allows you to make a raw Conduit method call:
+
+            - Run this command from a working directory.
+            - Call parameters are REQUIRED and read as a JSON blob from stdin.
+            - Results are written to stdout as a JSON blob.
+
+          This workflow is primarily useful for writing scripts which integrate
+          with Phabricator. Examples:
+
+            $ echo '{}' | arc call-conduit conduit.ping
+            $ echo '{"phid":"PHID-FILE-xxxx"}' | arc call-conduit file.download
+
 EOTEXT
       );
   }