mirror of
https://github.com/urbit/shrub.git
synced 2024-12-15 04:22:48 +03:00
58 lines
1019 B
Plaintext
58 lines
1019 B
Plaintext
::
|
|
:::: /hoon/collections/lib
|
|
::
|
|
/? 309
|
|
/+ cram
|
|
::
|
|
::
|
|
|%
|
|
+= collection [meta=config data=(map nom=knot =item)]
|
|
+= item
|
|
$~ [%raw %umd ~ %$]
|
|
$% [%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
|
|
name=@t
|
|
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]
|
|
::
|
|
[%collection pax=path name=@t desc=@t comments=? visible=? type=@tas]
|
|
[%post pax=path name=@t type=@tas comments=? content=@t]
|
|
[%comment pax=path content=@t]
|
|
==
|
|
::
|
|
+= form
|
|
$% [%umd @t]
|
|
[%collections-config config]
|
|
==
|
|
::
|
|
--
|