mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 13:54:20 +03:00
arvo: restore :time app
This commit is contained in:
parent
5b9da64122
commit
455de92b0d
37
pkg/arvo/app/time.hoon
Normal file
37
pkg/arvo/app/time.hoon
Normal file
@ -0,0 +1,37 @@
|
||||
::
|
||||
/+ default-agent, verb
|
||||
::
|
||||
|%
|
||||
::
|
||||
+$ card card:agent:gall
|
||||
--
|
||||
^- agent:gall
|
||||
|_ =bowl:gall
|
||||
+* this .
|
||||
def ~(. (default-agent this %|) bowl)
|
||||
::
|
||||
++ on-init [~ this]
|
||||
++ on-save !>(~)
|
||||
++ on-load _on-init
|
||||
++ on-poke
|
||||
|= [=mark =vase]
|
||||
?+ mark !!
|
||||
%noun :_ this
|
||||
[%pass /(scot %da now.bowl) %arvo %b %wait `@da`+(now.bowl)]~
|
||||
==
|
||||
::
|
||||
++ on-watch on-watch:def
|
||||
++ on-leave on-leave:def
|
||||
++ on-peek on-peek:def
|
||||
++ on-agent on-agent:def
|
||||
++ on-arvo
|
||||
|= [=wire sign=sign-arvo]
|
||||
^- (quip card _this)
|
||||
?+ wire !!
|
||||
[@ ~]
|
||||
?> ?=(%wake +<.sign)
|
||||
~& [%took `@dr`(sub now.bowl (slav %da i.wire))]
|
||||
[~ this]
|
||||
==
|
||||
++ on-fail on-fail:def
|
||||
--
|
Loading…
Reference in New Issue
Block a user