From: epriestley Date: Mon, 12 May 2014 18:36:19 +0000 (-0700) Subject: Print out a "waiting on stdin" message from 'arc call-conduit' X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=0c21afa08a998309ae7d51b636fad9f1ded9e0db;p=arcanist.git Print out a "waiting on stdin" message from 'arc call-conduit' 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 --- diff --git a/src/workflow/ArcanistCallConduitWorkflow.php b/src/workflow/ArcanistCallConduitWorkflow.php index e21929c5..d0717c55 100644 --- a/src/workflow/ArcanistCallConduitWorkflow.php +++ b/src/workflow/ArcanistCallConduitWorkflow.php @@ -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)) {