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:
parent
9b05a025b7
commit
0c21afa08a
1 changed files with 2 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue