]> khamidou — GitHub mirrors - arcanist.git/commit
Suppress stdin message if input is piped
authorJoshua Spence <josh@joshuaspence.com>
Fri, 2 Jan 2015 00:36:24 +0000 (11:36 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Fri, 2 Jan 2015 00:36:24 +0000 (11:36 +1100)
commit0352db802e9ddff35286b247e27a89ea11a78929
tree9c7332c77fb2bdd02e50cddf563598087cf0aaa7
parentf86a70f411df194a24f8b205aa10d16e789c77c0
Suppress stdin message if input is piped

Summary: Currently we output "Waiting for JSON parameters on stdin...", even if `stdin` is piped (for example, from `echo`).

Test Plan:
```lang=bash
> echo '{}' | arc call-conduit conduit.ping
{"error":null,"errorMessage":null,"response":"ip-10-161-81-110"}

> arc call-conduit conduit.ping
Waiting for JSON parameters on stdin...
{}
^D
{"error":null,"errorMessage":null,"response":"ip-10-161-81-110"}
```

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11122
src/workflow/ArcanistCallConduitWorkflow.php