HomePhabricator

Suppress stdin message if input is piped

Description

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:

> 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

Details

Provenance
joshuaspenceAuthored on
joshuaspencePushed on Jan 2 2015, 12:36 AM
Reviewer
Blessed Reviewers
Differential Revision
D11122: Suppress stdin message if input is piped
Parents
rARCf86a70f411df: Remove some old code handling the absence of the `file.uploadhash` Conduit…
Branches
Unknown
Tags
Unknown