Currently we output "Waiting for JSON parameters on stdin...", even if stdin is piped (for example, from echo).
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rARC0352db802e9d: Suppress stdin message if input is piped
> 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"}
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I believe we don't require posix, and I don't want to require it. You can do this:
if (!function_exists('posix_isatty') || posix_isatty(STDIN)) { // print message }