ted/sane: add thread to run sanity checking

This commit is contained in:
Liam Fitzgerald 2020-11-30 13:44:31 +10:00
parent 3d51d6827f
commit f552492414
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

30
pkg/arvo/ted/sane.hoon Normal file
View File

@ -0,0 +1,30 @@
/- spider
/+ *strandio
=>
|%
++ strand strand:spider
::
++ supported-apps
^- (list term)
:~ %graph-pull-hook
%group-pull-hook
==
::
++ poke-all-sane
=/ m (strand ,~)
^- form:m
=/ apps supported-apps
|- =* loop $
?~ apps
(pure:m ~)
=* app i.apps
;< ~ bind:m (poke-our app sane+!>(%sane))
loop(apps t.apps)
--
::
^- thread:spider
|= vase
=/ m (strand ,vase)
;< ~ bind:m poke-all-sane
;< ~ bind:m (poke-our %sane noun+!>(%fix))
(pure:m !>("Done"))