urbit/sur/lens.hoon
Philip C Monk a8910dea96 waypoint
2016-03-07 17:06:17 -05:00

32 lines
681 B
Plaintext

|%
++ command
$: flags/{merge-input/? fan-output/?}
sources/(list source)
transformers/(list transformer)
sinks/(list sink)
==
++ source
$% {$data data/@}
{$dojo command/@t}
{$clay pax/@t}
{$url url/purl}
{$api api/term command/@t}
{$get-api api/term endpoint/(list @t)}
{$listen-api api/term event/term}
==
++ transformer
$% {$as mar/mark}
{$hoon code/@t}
==
++ sink
$% {$stdout $~}
{$output-file pax/@t}
{$output-clay pax/path}
{$url url/purl}
{$to-api api/term command/@t}
{$send-api api/term endpoint/purl}
{$command command/@t}
{$app app/term}
==
--