urbit/main/bin/update.hoon

38 lines
1.1 KiB
Plaintext
Raw Normal View History

2013-09-29 00:21:18 +04:00
!:
:: /=main=/bin/update/hoon
2013-09-29 00:21:18 +04:00
::
=> .(-< `who=@p`-<)
2014-06-02 22:41:53 +04:00
=> %= .
+
=> +
|%
++ merge
|= [gem=germ who=@p bos=@p est=time]
|= [der=dome owr=dome des=desk]
^- gift
2014-07-10 18:38:53 +04:00
=+ sab=`saba`[bos des [0 let.der] (flop (turn hit.der |=(a=frog q.a))) ang.der]
2014-06-02 22:41:53 +04:00
=+ lum=(~(auld ze est owr) gem who des sab)
?~ lum
^- gift
:+ %la %leaf
2014-06-07 21:42:48 +04:00
"{(trip des)} failed to apply, please rerun with a merge option"
2014-06-02 22:41:53 +04:00
?~ u.lum
`gift`[%la %leaf "{(trip des)} is up to date"]
`gift`[%ok des u.u.lum]
--
==
|= [est=time eny=@uw]
2014-05-20 22:53:49 +04:00
|= gem=$|([germ ~] ~)
2013-12-30 02:27:44 +04:00
=+ wen=(scot %da (need (slaw %da +>-:/===))) :: heinous
?: =(~zod who) [~ ~]
2014-06-02 22:41:53 +04:00
=+ bos==+(bos=(sein who) ?:(=(bos who) ~zod bos))
=+ syn=`(list ,@tas)`~[%main %arvo %try]
=+ ^= desks
%+ turn syn
2014-06-02 22:41:53 +04:00
|= des=desk
2013-12-29 10:58:54 +04:00
=+ der=((hard dome) .^(%cv /(scot %p bos)/[des]/[wen]))
=+ owr=((hard dome) .^(%cv /(scot %p who)/[des]/[wen]))
2014-06-02 22:41:53 +04:00
[der owr des]
=+ gifts=`(list gift)`(turn desks (merge ?~(gem %fine -.gem) who bos est))
`bowl`[[[%la %leaf "updating..."] gifts] ~]