From 0c21afa08a998309ae7d51b636fad9f1ded9e0db Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 12 May 2014 11:36:19 -0700 Subject: [PATCH] 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 --- src/workflow/ArcanistCallConduitWorkflow.php | 2 ++ 1 file changed, 2 insertions(+) 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)) {