shrub/pkg/garden-dev/sur/docket.hoon

83 lines
1.4 KiB
Plaintext
Raw Normal View History

2021-08-11 06:49:59 +03:00
|%
::
+$ version
[major=@ud minor=@ud patch=@ud]
::
+$ glob (map path mime)
::
+$ url cord
2021-08-23 04:45:32 +03:00
:: $glob-location: How to retrieve a glob
::
2021-09-23 08:45:13 +03:00
+$ glob-reference
[hash=@uvH location=glob-location]
::
2021-08-23 04:45:32 +03:00
+$ glob-location
2021-09-23 08:45:13 +03:00
$% [%http =url]
[%ames =ship]
2021-08-23 04:45:32 +03:00
==
:: $href: Where a tile links to
::
+$ href
2021-09-23 08:45:13 +03:00
$% [%glob base=term =glob-reference]
2021-08-23 04:45:32 +03:00
[%site =path]
==
:: $chad: State of a docket
::
+$ chad
$~ [%install ~]
2021-08-23 04:45:32 +03:00
$% :: Done
[%glob =glob]
[%site ~]
:: Waiting
2021-08-23 04:45:32 +03:00
[%install ~]
[%suspend glob=(unit glob)]
2021-08-23 04:45:32 +03:00
:: Error
[%hung err=cord]
==
2021-08-11 06:49:59 +03:00
::
:: $charge: A realized $docket
::
+$ charge
2021-08-23 04:45:32 +03:00
$: =docket
=chad
==
2021-08-11 06:49:59 +03:00
::
:: $clause: A key and value, as part of a docket
::
:: Only used to parse $docket
::
+$ clause
$% [%title title=@t]
[%info info=@t]
[%color color=@ux]
[%glob-http url=cord hash=@uvH]
[%glob-ames =ship hash=@uvH]
2021-08-23 04:45:32 +03:00
[%image =url]
[%site =path]
2021-08-11 06:49:59 +03:00
[%base base=term]
[%version =version]
[%website website=url]
[%license license=cord]
==
::
2021-08-23 04:45:32 +03:00
:: $docket: A description of JS bundles for a desk
2021-08-11 06:49:59 +03:00
::
+$ docket
$: %1
title=@t
info=@t
color=@ux
2021-08-23 04:45:32 +03:00
=href
image=(unit url)
2021-08-11 06:49:59 +03:00
=version
website=url
license=cord
==
::
2021-08-23 04:45:32 +03:00
+$ charge-update
$% [%initial initial=(map desk charge)]
[%add-charge =desk =charge]
[%del-charge =desk]
2021-08-11 06:49:59 +03:00
==
--