]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Print out a "waiting on stdin" message from 'arc call-conduit'
authorepriestley <git@epriestley.com>
Mon, 12 May 2014 18:36:19 +0000 (11:36 -0700)
committerepriestley <git@epriestley.com>
Mon, 12 May 2014 18:36:19 +0000 (11:36 -0700)
Summary: It looks like this command is just hanging if you skim the documentation and miss that you have to echo parameters into it. Print out a hint.

Test Plan: Ran `arc call-conduit` and got a hint.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D9050

src/workflow/ArcanistCallConduitWorkflow.php

index e21929c54466bbbbb0d8203f379123efdcb2c700..d0717c55ac83e08ea15a293ac62de6031ff35fd1 100644 (file)
@@ -62,6 +62,8 @@ EOTEXT
     }
     $method = reset($method);
 
+    $console = PhutilConsole::getConsole();
+    $console->writeOut("%s\n", pht('Waiting for JSON parameters on stdin...'));
     $params = @file_get_contents('php://stdin');
     $params = json_decode($params, true);
     if (!is_array($params)) {