shrub/pkg/arvo/lib/hark/group-hook.hoon

37 lines
504 B
Plaintext
Raw Normal View History

2020-10-27 08:04:39 +03:00
/- sur=hark-group-hook
/+ resource
^?
=< [. sur]
=, sur
|%
::
++ dejs
=, dejs:format
|%
::
++ action
%- of
:~ listen+dejs-path:resource
ignore+dejs-path:resource
==
--
::
++ enjs
=, enjs:format
|%
::
++ res
(cork enjs-path:resource (lead %s))
++ update
|= upd=^update
%+ frond -.upd
?- -.upd
%initial
:- %a
(turn ~(tap in watching.upd) res)
::
?(%listen %ignore) (res group.upd)
==
--
--