mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-19 04:41:37 +03:00
dd0716eb72
Conflicts: n/t.c urb/urbit.pill urb/zod/main/app/reload/core.hook urb/zod/main/app/shell/core.hook urb/zod/main/app/solid/core.hook urb/zod/main/arvo/dill.hoon urb/zod/main/arvo/eyre.hoon urb/zod/main/arvo/ford.hoon urb/zod/main/arvo/gall.hoon urb/zod/main/arvo/hoon.hoon urb/zod/main/mar/json/door.hook urb/zod/main/mar/md/door.hook urb/zod/main/mar/txt/door.hook v/raft.c v/unix.c
31 lines
729 B
Plaintext
31 lines
729 B
Plaintext
:: Reload kernel vanes, specified by name or letter
|
|
::
|
|
:::: /hook/core/reload/app
|
|
::
|
|
/+ sh-utils
|
|
!:
|
|
::::
|
|
::
|
|
|_ [hid=hide ~]
|
|
++ peer ,_`.
|
|
++ poke--args
|
|
%^ add-output .
|
|
rush/tang/[leaf/"done"]~
|
|
%+ args-into-resp .
|
|
|= all=(list ,@tas)
|
|
%+ turn all
|
|
=+ ark=(arch .^(%cy /(scot %p our.hid)/main/(scot %da lat.hid)/arvo))
|
|
=+ van=(~(tap by r.ark))
|
|
|= nam=@tas
|
|
=. nam
|
|
?. =(1 (met 3 nam))
|
|
nam
|
|
=+ ^- zaz=(list ,[p=span ~])
|
|
(skim van |=([a=term ~] =(nam (end 3 1 a))))
|
|
?> ?=([[@ ~] ~] zaz)
|
|
`term`p.i.zaz
|
|
=+ tip=(end 3 1 nam)
|
|
=+ pax=[(scot %p our.hid) %main (scot %da lat.hid) %arvo nam ~]
|
|
[%veer ?:(=('z' tip) %$ tip) pax (,@ .^(%cx (welp pax /hoon)))]
|
|
--
|