From c3fd4922aa63ada757ce0897a87a2dc10bde284a Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Wed, 2 Sep 2020 15:17:34 +1000 Subject: [PATCH] lib/strandio: add +scry --- pkg/arvo/lib/strandio.hoon | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/arvo/lib/strandio.hoon b/pkg/arvo/lib/strandio.hoon index 71299cb8b..8da72d0be 100644 --- a/pkg/arvo/lib/strandio.hoon +++ b/pkg/arvo/lib/strandio.hoon @@ -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 ,~)