mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 10:21:31 +03:00
36 lines
612 B
Plaintext
36 lines
612 B
Plaintext
/- *resource
|
|
|%
|
|
+$ rolodex (map ship contact)
|
|
+$ contact
|
|
$: nickname=@t
|
|
email=@t
|
|
phone=@t
|
|
website=@t
|
|
color=@ux
|
|
avatar=(unit @t)
|
|
==
|
|
::
|
|
+$ edit-field
|
|
$% [%nickname nickname=@t]
|
|
[%email email=@t]
|
|
[%phone phone=@t]
|
|
[%website website=@t]
|
|
[%color color=@ux]
|
|
[%avatar avatar=(unit @t)]
|
|
==
|
|
::
|
|
+$ beings
|
|
$% [%ships ships=(set ship)]
|
|
[%group =resource]
|
|
==
|
|
::
|
|
+$ update
|
|
$% [%initial =rolodex]
|
|
[%add =ship =contact]
|
|
[%remove =ship]
|
|
[%edit =ship =edit-field]
|
|
[%allow =beings]
|
|
[%disallow =beings]
|
|
==
|
|
--
|