mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-22 22:31:30 +03:00
32 lines
550 B
Plaintext
32 lines
550 B
Plaintext
/- spider
|
|
/+ *strandio
|
|
=>
|
|
|%
|
|
++ strand strand:spider
|
|
+$ input ?(%fix %check)
|
|
::
|
|
++ supported-apps
|
|
^- (list term)
|
|
~[%group-store]
|
|
::
|
|
++ poke-all-sane
|
|
|= =input
|
|
=/ m (strand ,~)
|
|
^- form:m
|
|
=/ apps supported-apps
|
|
|- =* loop $
|
|
?~ apps
|
|
(pure:m ~)
|
|
=* app i.apps
|
|
;< ~ bind:m (poke-our app sane+!>(input))
|
|
loop(apps t.apps)
|
|
--
|
|
::
|
|
^- thread:spider
|
|
|= vas=vase
|
|
=/ m (strand ,vase)
|
|
=+ !<([~ in=input] vas)
|
|
;< ~ bind:m (poke-all-sane in)
|
|
;< ~ bind:m (poke-our %sane noun+!>(in))
|
|
(pure:m !>("Done"))
|