mirror of
https://github.com/urbit/shrub.git
synced 2024-12-23 19:05:48 +03:00
lib/strandio: add +scry
This commit is contained in:
parent
6bf2ec28a6
commit
7eea3de7bb
@ -241,6 +241,15 @@
|
||||
;< our=@p bind:m get-our
|
||||
(watch wire [our term] path)
|
||||
::
|
||||
++ scry
|
||||
|* [=mold =path]
|
||||
=/ m (strand mold)
|
||||
?> ?=(^ path)
|
||||
?> ?=(^ t.path)
|
||||
;< =bowl:spider bind:m get-bowl
|
||||
%- pure:m
|
||||
.^(mold i.path (scot %p our.bowl) i.t.path (scot %da now.bowl) t.t.path)
|
||||
::
|
||||
++ leave
|
||||
|= [=wire =dock]
|
||||
=/ m (strand ,~)
|
||||
|
Loading…
Reference in New Issue
Block a user