mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 20:02:51 +03:00
added :reset
This commit is contained in:
parent
22ad0104cf
commit
b32a106f49
41
main/app/reset/core.hook
Normal file
41
main/app/reset/core.hook
Normal file
@ -0,0 +1,41 @@
|
||||
!:
|
||||
|_ [hid=hide ~]
|
||||
++ poke-reset-args
|
||||
|= [ost=bone you=ship ~]
|
||||
:_ +>.$
|
||||
=+ top=`path`/(scot %p our.hid)/arvo/(scot %da lat.hid)
|
||||
=+ pax=`path`(weld top `path`[%hoon ~])
|
||||
:+ [ost %give %nice ~]
|
||||
[ost %pass / %t %wait lat.hid]
|
||||
%- welp :_ [ost %give %vega pax]~
|
||||
%+ turn
|
||||
%- flop
|
||||
^- (list ,[p=@tas q=@tas])
|
||||
:~ [%$ %zuse]
|
||||
[%a %ames]
|
||||
[%c %clay]
|
||||
[%d %dill]
|
||||
[%e %eyre]
|
||||
[%f %ford]
|
||||
[%g %gall]
|
||||
[%t %time]
|
||||
==
|
||||
|= [p=@tas q=@tas]
|
||||
=+ pax=(weld top `path`[q ~])
|
||||
=+ txt=((hard ,@) .^(%cx (weld pax `path`[%hoon ~])))
|
||||
[ost %give %veer p pax txt]
|
||||
++ pour
|
||||
|= [ost=bone pax=path *]
|
||||
:_ +>.$ :_ ~
|
||||
=+ paf=/(scot %p our.hid)/main/(scot %da lat.hid)/app/reset/count/txt
|
||||
=+ ^= num
|
||||
?: ?=([%0 %0 %0] [.^(%cy paf)]) '0'
|
||||
%+ scot %ud
|
||||
.+
|
||||
(fall (slaw %ud (,@t .^(%cx paf))) 0)
|
||||
[ost %pass /touch %c %info our.hid (foal paf num)]
|
||||
++ peer
|
||||
|=
|
||||
*
|
||||
`+>
|
||||
--
|
Loading…
Reference in New Issue
Block a user