mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 09:51:36 +03:00
25 lines
468 B
Plaintext
25 lines
468 B
Plaintext
/- *resource
|
|
/+ store=graph-store
|
|
|_ =bowl:gall
|
|
++ scry-for
|
|
|* [=mold =path]
|
|
.^ mold
|
|
%gx
|
|
(scot %p our.bowl)
|
|
%graph-store
|
|
(scot %da now.bowl)
|
|
(snoc `^path`path %noun)
|
|
==
|
|
::
|
|
++ get-graph
|
|
|= res=resource
|
|
^- marked-graph:store
|
|
%+ scry-for marked-graph:store
|
|
/graph/(scot %p entity.res)/[name.res]
|
|
::
|
|
++ peek-log
|
|
|= res=resource
|
|
^- (unit time)
|
|
(scry-for (unit time) /peek-update-log/(scot %p entity.res)/[name.res])
|
|
--
|