2016-02-27 04:13:00 +03:00
|
|
|
/- lens
|
2018-10-10 01:23:15 +03:00
|
|
|
|_ com/command:lens
|
2016-02-27 04:13:00 +03:00
|
|
|
++ grab
|
|
|
|
|%
|
2018-10-10 01:23:15 +03:00
|
|
|
++ noun command:lens
|
2016-02-27 04:13:00 +03:00
|
|
|
++ json
|
|
|
|
|= jon/^json
|
2018-10-10 01:23:15 +03:00
|
|
|
^- command:lens
|
2016-05-04 02:26:52 +03:00
|
|
|
~| jon=jon
|
2016-02-27 04:13:00 +03:00
|
|
|
%- need
|
|
|
|
%. jon
|
|
|
|
=< %- ot :~
|
2016-03-09 04:19:28 +03:00
|
|
|
source+source
|
|
|
|
sink+sink
|
2016-02-27 04:13:00 +03:00
|
|
|
==
|
2018-10-27 02:19:18 +03:00
|
|
|
=, dejs-soft:format
|
2016-02-27 04:13:00 +03:00
|
|
|
|%
|
|
|
|
++ source
|
2019-01-02 22:24:28 +03:00
|
|
|
^- $-(^^json (unit source:lens))
|
2018-10-27 02:19:18 +03:00
|
|
|
|= jon/^^json
|
2016-03-12 03:37:11 +03:00
|
|
|
=+ tuple=%.(jon (ar source))
|
|
|
|
?^ tuple
|
|
|
|
`[%tuple u.tuple]
|
2016-03-09 04:19:28 +03:00
|
|
|
%. jon
|
2016-02-27 04:13:00 +03:00
|
|
|
%- of :~
|
2018-10-27 02:19:18 +03:00
|
|
|
data+so
|
|
|
|
dojo+so
|
|
|
|
clay+so
|
|
|
|
url+(su auri:de-purl:html)
|
2016-02-27 04:13:00 +03:00
|
|
|
api+(su ;~(plug sym ;~(pfix col prn)))
|
2016-03-08 01:06:17 +03:00
|
|
|
:- %get-api
|
|
|
|
%- su
|
|
|
|
;~ plug
|
|
|
|
sym
|
2018-08-03 21:01:48 +03:00
|
|
|
;~(pfix col (more net (cook crip (star ;~(less net prn)))))
|
2016-03-08 01:06:17 +03:00
|
|
|
==
|
2016-02-27 04:13:00 +03:00
|
|
|
listen-api+(su ;~(plug sym ;~(pfix col sym)))
|
2019-07-16 01:18:28 +03:00
|
|
|
export+so
|
2019-07-16 23:52:42 +03:00
|
|
|
import+(ot app+so base64-jam+so ~)
|
2016-03-09 04:19:28 +03:00
|
|
|
as+(ot mark+(su sym) next+source ~)
|
2018-10-27 02:19:18 +03:00
|
|
|
hoon+(ot code+so next+source ~)
|
2016-02-27 04:13:00 +03:00
|
|
|
==
|
2018-10-27 02:19:18 +03:00
|
|
|
++ none |=(^^json (some ~))
|
2016-02-27 04:13:00 +03:00
|
|
|
++ sink
|
2019-01-02 22:24:28 +03:00
|
|
|
^- $-(^^json (unit sink:lens))
|
2016-02-27 04:13:00 +03:00
|
|
|
%- of :~
|
2018-10-27 02:19:18 +03:00
|
|
|
stdout+none
|
|
|
|
output-file+so
|
2019-02-28 03:12:59 +03:00
|
|
|
output-pill+so
|
2016-02-27 04:13:00 +03:00
|
|
|
output-clay+(su (easy /sentinel/path))
|
2018-10-27 02:19:18 +03:00
|
|
|
url+(su auri:de-purl:html)
|
2016-02-27 04:13:00 +03:00
|
|
|
to-api+(su ;~(plug sym ;~(pfix col prn)))
|
2016-03-09 04:19:28 +03:00
|
|
|
:- %send-api
|
|
|
|
%- su
|
|
|
|
;~ plug
|
|
|
|
sym
|
2018-08-03 21:01:48 +03:00
|
|
|
;~(pfix col (more net (cook crip (star ;~(less net prn)))))
|
2016-03-09 04:19:28 +03:00
|
|
|
==
|
2018-10-27 02:19:18 +03:00
|
|
|
command+so
|
2016-02-27 04:13:00 +03:00
|
|
|
app+(su sym)
|
|
|
|
==
|
|
|
|
--
|
|
|
|
--
|
|
|
|
--
|