mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
ted/sane: add thread to run sanity checking
This commit is contained in:
parent
3d51d6827f
commit
f552492414
30
pkg/arvo/ted/sane.hoon
Normal file
30
pkg/arvo/ted/sane.hoon
Normal 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"))
|
Loading…
Reference in New Issue
Block a user