urbit/pkg/arvo/sur/metadata-store.hoon

29 lines
610 B
Plaintext
Raw Normal View History

2020-02-13 03:50:24 +03:00
|%
+$ group-path path
+$ app-name term
+$ app-path path
2020-06-24 03:28:57 +03:00
+$ md-resource [=app-name =app-path]
+$ associations (map [group-path md-resource] metadata)
2020-02-13 03:50:24 +03:00
::
+$ color @ux
2020-02-13 03:50:24 +03:00
+$ metadata
$: title=cord
description=cord
=color
date-created=time
creator=ship
module=term
2020-02-13 03:50:24 +03:00
==
::
+$ metadata-action
$% [%add =group-path resource=md-resource =metadata]
[%remove =group-path resource=md-resource]
2020-02-13 03:50:24 +03:00
==
::
+$ metadata-update
$% metadata-action
[%associations =associations]
[%update-metadata =group-path resource=md-resource =metadata]
==
2020-02-13 03:50:24 +03:00
--