shrub/sur/lens.hoon

29 lines
721 B
Plaintext
Raw Normal View History

2016-02-27 04:13:00 +03:00
|%
++ command
2016-03-09 04:19:28 +03:00
$: source/source
sink/sink
2016-02-27 04:13:00 +03:00
==
++ source
$% {$data data/@}
{$dojo command/@t}
2016-03-08 01:06:17 +03:00
{$clay pax/@t}
{$url url/purl:eyre}
2016-02-27 04:13:00 +03:00
{$api api/term command/@t}
2016-03-08 01:06:17 +03:00
{$get-api api/term endpoint/(list @t)}
2016-03-09 04:19:28 +03:00
{$as mar/mark next/source} :: can't be at the
{$hoon code/@t next/source} :: end since they
{$tuple next/(list source)} :: don't bunt well
2016-02-27 04:13:00 +03:00
{$listen-api api/term event/term}
==
++ sink
2018-03-19 07:18:20 +03:00
$% {$stdout ~}
2016-02-27 04:13:00 +03:00
{$output-file pax/@t}
{$output-clay pax/path}
{$url url/purl:eyre}
2016-02-27 04:13:00 +03:00
{$to-api api/term command/@t}
2016-03-09 04:19:28 +03:00
{$send-api api/term endpoint/(list @t)}
2016-02-27 04:13:00 +03:00
{$command command/@t}
{$app app/term}
==
--