uber-node / tcurl

A command line utility to talk to tchannel servers
MIT License
36 stars 7 forks source link

Better json output format #44

Closed ShanniLi closed 9 years ago

ShanniLi commented 9 years ago

r @Raynos @anson627 @blampe

node index.js -p 127.0.0.1:21300 hyperbahn Hyperbahn:discover -3 '{"query":"onediretion"}' -j 2>&1 | jq . { "message": "Got an error response", "response": { "type": "tchannel.bad-request", "message": "no such endpoint service=\"hyperbahn\" endpoint=\"Hyperbahn:discover\"", "isErrorFrame": true, "codeName": "BadRequest", "errorCode": 6, "originalId": 2, "name": "TchannelBadRequestError", "fullType": "tchannel.bad-request" } }

anson627 commented 9 years ago

:+1: