Re:HTTPie – A user-friendly CLI HTTP client
by zomglings on Sunday December 01, 2019 @01:05PM
(#21676808)
Interesting, looks like Linux users can also try out Powershell now: https://docs.microsoft.com/en-us/powershell/scripting/instal...
It's a beefy package, though. Packaged in a docker image on top of alpine:3.10.3 following their installation instructions for alpine: https://gist.github.com/nkashy1/643e7a263054c02e2caceb3912f8...
The image comes in at 178 MB. alpine:3.10.3 is 5.5 MB. An alpine image in which you add bash, bash-doc, and bash-completion clocks in at 13 MB.
Sounds really powerful for personal use, but not an ideal tool for production use (e.g. when you need to spin up a pod on a Kubernetes cluster to debug an issue in production). Will definitely try it out.
Re:HTTPie – A user-friendly CLI HTTP client
by vips7L on Sunday December 01, 2019 @01:46PM
(#21677073)
Probably because it has to include the entire CLR/.net framework. I suppose that is a concern, but I doubt I'll ever be doing k8s or docker in my career anytime soon.
Re:HTTPie – A user-friendly CLI HTTP client
by benibela on Sunday December 01, 2019 @06:40PM
(#21678594)
For similar pipelines I build Xidel (http://www.videlibri.de/xidel.html)
xidel url -e 'logic'
and one such xidel call is enough regardless, if the url returns json, xml or html.
This is painful. In powershell this is built in and as easy as iwr url/to/json | convertfrom-json | other logic