Curl utility

This commit is contained in:
Anton Dyudin 2015-01-29 18:36:00 -08:00
parent db05158f71
commit 8bbe811ad1

20
main/app/curl/core.hook Normal file
View File

@ -0,0 +1,20 @@
:: Command-line URL fetch, :curl "http://example.com"
::
::::
::
/+ sh-utils
!:
|_ [hide *]
++ peer ,_`.
++ poke--args
%+ gate-bang
|=([a=tape ~] [%e %them ~ ~|([%bad-url a] (scan a auri:epur)) %get ~ ~])
,_`.
::
++ pour
%+ args-into-gate .
|= [%e %thou @ mess a=(unit octs)]
:- %tang
?~ a ~
(turn (lore q.u.a) |=(b=cord leaf/(trip b)))
--