shrub/lib/collections.hoon

58 lines
1019 B
Plaintext
Raw Normal View History

2018-07-31 07:00:49 +03:00
::
:::: /hoon/collections/lib
::
/? 309
/+ cram
::
::
|%
+= collection [meta=config data=(map nom=knot =item)]
2018-07-31 07:00:49 +03:00
+= item
$~ [%raw %umd ~ %$]
2018-07-31 07:00:49 +03:00
$% [%collection col=collection]
[%raw raw=raw-item]
[%both col=collection raw=raw-item]
==
+= raw-item
$% [%umd meta=(map knot cord) data=@t]
==
::
+= config
$: full-path=beam
2018-08-21 00:16:57 +03:00
name=@t
2018-07-31 07:00:49 +03:00
description=@t
::
owner=@p
::
date-created=@da
last-modified=@da
::
type=@tas
comments=?
sort-key=(unit @)
visible=?
::
==
::
+= action
$: who=ship
dek=desk
acts=(list sub-action)
==
+= sub-action
$% [%write pax=path for=form]
[%delete pax=path]
[%perms pax=path r=rule:clay w=rule:clay]
::
2018-08-21 00:16:57 +03:00
[%collection pax=path name=@t desc=@t comments=? visible=? type=@tas]
[%post pax=path name=@t type=@tas comments=? content=@t]
2018-07-31 07:00:49 +03:00
[%comment pax=path content=@t]
==
::
+= form
$% [%umd @t]
[%collections-config config]
2018-07-31 07:00:49 +03:00
==
::
--