1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2025-01-03 19:31:01 +01:00

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
This commit is contained in:
epriestley 2014-05-12 11:36:19 -07:00
parent 9b05a025b7
commit 0c21afa08a

View 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)) {