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
- Branch
- master
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 3449 Build 3456: [Placeholder Plan] Wait for 30 Seconds
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 }