shrub/main/bin/reboot.hoon

28 lines
599 B
Plaintext
Raw Normal View History

2013-09-29 00:21:18 +04:00
!:
:: /=main=/fun/reboot/hoon
::
=> .(- `[who=@p how=path]`-)
|= [est=time eny=@uw]
|= arg=*
=+ ^= lok ^- case
?: =(~ arg) [%da est]
?> =(~ +.arg)
((hard case) -.arg)
=+ pre=`path`[(scot %p who) %arvo ~(rent co %$ (dime lok)) ~]
=+ ^= vay ^- (list ,[p=@tas q=@tas])
:~ [%$ %zuse]
[%a %ames]
[%b %batz]
[%c %clay]
[%d %dill]
[%e %eyre]
2014-05-31 02:51:31 +04:00
[%f %ford]
[%g %gall]
2013-09-29 00:21:18 +04:00
==
:_ ~
%+ turn vay
|= [saw=@tas nam=@tas]
=+ pax=(weld pre `path`[nam ~])
=+ txt=.^(%cx (weld pax `path`[%hoon ~]))
[%xx [%veer saw pax txt]]