Home GnuPG

Suppress stdin message if input is piped
0352db802e9dUnpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

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

Event Timeline

Joshua Spence <josh@joshuaspence.com> committed rARC0352db802e9d: Suppress stdin message if input is piped (authored by Joshua Spence <josh@joshuaspence.com>).Jan 2 2015, 1:36 AM