urbit/pkg/arvo/app/goad.hoon

39 lines
730 B
Plaintext
Raw Normal View History

/+ default-agent, verb
%+ verb |
^- agent:gall
=>
|%
++ goad
|= force=?
:~ [%pass /gall %arvo %g %goad force ~]
==
--
|_ =bowl:gall
+* this .
def ~(. (default-agent this %|) bowl)
2020-06-10 11:16:25 +03:00
::
++ on-poke
|= [=mark =vase]
?: ?=([%noun * %go] +<)
[(goad |) this]
?: ?=([%noun * %force] +<)
[(goad &) this]
(on-poke:def mark vase)
::
2020-06-10 11:16:25 +03:00
++ on-arvo
|= [wir=wire sin=sign-arvo]
?+ wir (on-arvo:def wir sin)
[%clay ~] `this
2020-06-29 09:43:52 +03:00
[%behn ~] `this :: backcompat
2020-06-10 11:16:25 +03:00
==
::
++ on-agent on-agent:def
++ on-fail on-fail:def
2020-06-10 11:16:25 +03:00
++ on-init on-init:def
++ on-leave on-leave:def
++ on-load on-load:def
++ on-peek on-peek:def
++ on-save on-save:def
++ on-watch on-watch:def
--