mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 14:42:02 +03:00
arvo: removes %lyra and %veer
This commit is contained in:
parent
84bec6f7c1
commit
0cc8c450a8
@ -1,13 +0,0 @@
|
||||
:: Helm: Reload %zuse and all vanes
|
||||
::
|
||||
:::: /hoon/reboot/hood/gen
|
||||
::
|
||||
/? 310
|
||||
::
|
||||
::::
|
||||
::
|
||||
:- %say
|
||||
|= $: [now=@da eny=@uvJ bec=beak]
|
||||
[arg=~ ~]
|
||||
==
|
||||
[%helm-reload ~[%z %a %b %c %d %e %g %i %j]]
|
@ -1,14 +0,0 @@
|
||||
:: Helm: Reload vane/s from desk
|
||||
::
|
||||
:::: /hoon/reload-desk/hood/gen
|
||||
::
|
||||
/? 310
|
||||
::
|
||||
::::
|
||||
::
|
||||
:- %say
|
||||
|= $: [now=@da eny=@uvJ bec=beak]
|
||||
[arg=[desk (list term)] ~]
|
||||
==
|
||||
:- %helm-reload-desk
|
||||
arg
|
@ -1,14 +0,0 @@
|
||||
:: Helm: Reload vane/s
|
||||
::
|
||||
:::: /hoon/reload/hood/gen
|
||||
::
|
||||
/? 310
|
||||
::
|
||||
::::
|
||||
::
|
||||
:- %say
|
||||
|= $: [now=@da eny=@uvJ bec=beak]
|
||||
[arg=(list term) ~]
|
||||
==
|
||||
:- %helm-reload
|
||||
arg
|
@ -1,13 +0,0 @@
|
||||
:: Helm: Reload hoon/hoon and all vanes
|
||||
::
|
||||
:::: /hoon/reset/hood/gen
|
||||
::
|
||||
/? 310
|
||||
::
|
||||
::::
|
||||
::
|
||||
:- %say
|
||||
|= $: [now=@da eny=@uvJ bec=beak]
|
||||
[arg=~ ~]
|
||||
==
|
||||
[%helm-reset ~]
|
@ -1,26 +0,0 @@
|
||||
:: Produce a raw event to reload a vane
|
||||
::
|
||||
:: Try: .event/ovo +reload-event %c, then restart urbit with
|
||||
:: -I pier/.urb/put/event.ovo
|
||||
::
|
||||
:- %say
|
||||
|= $: [now=@da eny=@uvJ bek=beak]
|
||||
[[tam=term ~] ~]
|
||||
==
|
||||
:- %ovo
|
||||
=/ top `path`/(scot %p p.bek)/[q.bek]/(scot r.bek)
|
||||
=/ nam
|
||||
=/ van=(list [term ~])
|
||||
:- zus=[%zuse ~]
|
||||
~(tap by dir:.^(arch %cy (welp top /sys/vane)))
|
||||
?. =(1 (met 3 tam))
|
||||
tam
|
||||
=/ zaz=(list [p=knot ~])
|
||||
(skim van |=([a=term ~] =(tam (end 3 a))))
|
||||
?> ?=([[@ ~] ~] zaz)
|
||||
`term`p.i.zaz
|
||||
=/ tip (end 3 nam)
|
||||
=/ bip ?:(=('z' tip) %$ tip)
|
||||
=/ way ?:(=('z' tip) (welp top /sys/[nam]) (welp top /sys/vane/[nam]))
|
||||
=/ fil .^(@ %cx (welp way /hoon))
|
||||
[//arvo %veer bip way fil]
|
@ -154,47 +154,6 @@
|
||||
?> ?=([@t ~] pax)
|
||||
(flog %text "hi {(trip i.pax)} {?~(cop "" "un")}successful")
|
||||
::
|
||||
++ poke-reload |=(all=(list term) (poke-reload-desk %home all))
|
||||
++ poke-reload-desk :: reload vanes
|
||||
|: $:,[syd=desk all=(list term)] =< abet
|
||||
%- emil
|
||||
%+ turn all
|
||||
=+ top=`path`/(scot %p our.bowl)/[syd]/(scot %da now.bowl)
|
||||
=/ van=(list [term ~])
|
||||
:- zus=[%zuse ~]
|
||||
~(tap by dir:.^(arch %cy (welp top /sys/vane)))
|
||||
|= nam=@tas
|
||||
=. nam
|
||||
?. =(1 (met 3 nam))
|
||||
nam
|
||||
=/ zaz=(list [p=knot ~])
|
||||
(skim van |=([a=term ~] =(nam (end 3 a))))
|
||||
?> ?=([[@ ~] ~] zaz)
|
||||
`term`p.i.zaz
|
||||
=+ tip=(end 3 nam)
|
||||
=+ zus==('z' tip)
|
||||
=+ way=?:(zus (welp top /sys/[nam]) (welp top /sys/vane/[nam]))
|
||||
=+ fil=.^(@ %cx (welp way /hoon))
|
||||
[%pass /reload %arvo %d %flog %veer ?:(=('z' tip) %$ tip) way fil]
|
||||
:: +poke-reset: send %lyra to initiate kernel upgrade
|
||||
::
|
||||
:: And reinstall %zuse and the vanes with %veer.
|
||||
:: Trigger with |reset.
|
||||
::
|
||||
++ poke-reset
|
||||
|= hood-reset=~
|
||||
=< abet
|
||||
%- emil
|
||||
^- (list card:agent:gall)
|
||||
=/ top=path /(scot %p our.bowl)/home/(scot %da now.bowl)/sys
|
||||
=/ hun .^(@t %cx (welp top /hoon/hoon))
|
||||
=/ arv .^(@t %cx (welp top /arvo/hoon))
|
||||
~! *task:able:dill
|
||||
:- [%pass /reset %arvo %d %flog %lyra `hun arv]
|
||||
%+ turn
|
||||
(module-ova:pill top)
|
||||
|=([=wire =flog:dill] [%pass wire %arvo %d %flog flog])
|
||||
::
|
||||
++ poke-trim
|
||||
|= pri=@ud =< abet
|
||||
(emit %pass /pack %arvo %d %flog %crop pri)
|
||||
@ -253,9 +212,6 @@
|
||||
%helm-pack =;(f (f !<(_+<.f vase)) poke-pack)
|
||||
%helm-pass =;(f (f !<(_+<.f vase)) poke-pass)
|
||||
%helm-rekey =;(f (f !<(_+<.f vase)) poke-rekey)
|
||||
%helm-reload =;(f (f !<(_+<.f vase)) poke-reload)
|
||||
%helm-reload-desk =;(f (f !<(_+<.f vase)) poke-reload-desk)
|
||||
%helm-reset =;(f (f !<(_+<.f vase)) poke-reset)
|
||||
%helm-send-hi =;(f (f !<(_+<.f vase)) poke-send-hi)
|
||||
%helm-serve =;(f (f !<(_+<.f vase)) poke-serve)
|
||||
%helm-trim =;(f (f !<(_+<.f vase)) poke-trim)
|
||||
|
@ -17,29 +17,6 @@
|
||||
[%boot ? $%($>(%fake task:able:jael) $>(%dawn task:able:jael))]
|
||||
unix-task
|
||||
==
|
||||
:: +module-ova: vane load operations
|
||||
::
|
||||
:: sys: full path to /sys directory
|
||||
::
|
||||
++ module-ova
|
||||
|= sys=path
|
||||
^- (list [wire [%veer term path cord]])
|
||||
%+ turn
|
||||
^- (list (pair term path))
|
||||
:~ [%$ /zuse] :: standard library
|
||||
[%a /vane/ames] :: network
|
||||
[%b /vane/behn] :: timer
|
||||
[%c /vane/clay] :: revision control
|
||||
[%d /vane/dill] :: console
|
||||
[%e /vane/eyre] :: http server
|
||||
[%g /vane/gall] :: applications
|
||||
[%i /vane/iris] :: http client
|
||||
[%j /vane/jael] :: identity and security
|
||||
==
|
||||
|= [=term =path]
|
||||
=/ pax (weld sys path)
|
||||
=/ txt .^(@ %cx (weld pax /hoon))
|
||||
[[%vane path] [%veer term pax txt]]
|
||||
:: +file-ovum: userspace filesystem load
|
||||
::
|
||||
:: bas: full path to / directory
|
||||
|
@ -271,21 +271,17 @@
|
||||
==
|
||||
::
|
||||
+$ waif
|
||||
:: %lyra: upgrade kernel
|
||||
:: %trim: trim state, spam to all
|
||||
:: %vega: notify vanes post upgrade
|
||||
:: %what: update from files
|
||||
:: %whey: produce $mass :: XX remove, scry
|
||||
:: %verb: toggle laconicity
|
||||
:: %veer: upgrade module
|
||||
::
|
||||
$% [%lyra hun=(unit @t) van=@t]
|
||||
[%trim p=@ud]
|
||||
$% [%trim p=@ud]
|
||||
[%vega ~]
|
||||
[%what p=(list (pair path (cask)))]
|
||||
[%whey ~]
|
||||
[%verb p=(unit ?)]
|
||||
[%veer lal=@tas pax=path txt=@t]
|
||||
==
|
||||
+$ wasp
|
||||
:: %crud: reroute $ovum with $goof
|
||||
@ -297,7 +293,7 @@
|
||||
[%wyrd p=vere]
|
||||
==
|
||||
+$ wisp
|
||||
$% $>(?(%verb %veer %what) waif)
|
||||
$% $>(?(%verb %what) waif)
|
||||
$>(?(%wack %wyrd) wasp)
|
||||
[%whom p=ship]
|
||||
==
|
||||
@ -1239,10 +1235,6 @@
|
||||
^+ ..pith
|
||||
?^ dud ~>(%mean.'pith: goof' !!)
|
||||
?- -.waif
|
||||
%lyra =; wat $(waif wat)
|
||||
:+ %what [/sys/arvo hoon/van.waif]
|
||||
?~ hun.waif ~
|
||||
[[/sys/hoon hoon/u.hun.waif] ~]
|
||||
::
|
||||
:: %trim: clear state
|
||||
::
|
||||
@ -1255,10 +1247,6 @@
|
||||
::
|
||||
%vega (emit $/~ (spam /arvo !>(waif))) :: XX also out
|
||||
%verb ..pith(lac.fad ?~(p.waif !lac.fad u.p.waif))
|
||||
::
|
||||
%veer =/ pax
|
||||
sys/?:(?=(%$ lal.waif) /zuse /vane/[(grow lal.waif)])
|
||||
$(waif what/[[pax hoon/txt.waif] ~])
|
||||
::
|
||||
%what ~(kel what p.waif)
|
||||
%whey ..pith(out [[//arvo mass/whey] out])
|
||||
@ -1331,7 +1319,7 @@
|
||||
^+ this
|
||||
:: XX update clients to %pass to arvo, remove
|
||||
::
|
||||
?: ?=(?(%lyra %veer %verb %whey) -.card.ovum)
|
||||
?: ?=(?(%verb %whey) -.card.ovum)
|
||||
%- call
|
||||
~> %mean.'xeno: bad waif'
|
||||
;;(waif:pith card.ovum)
|
||||
@ -1639,10 +1627,6 @@
|
||||
|- ^+ ..poke
|
||||
?- -.wip
|
||||
%verb ..poke(lac ?~(p.wip !lac u.p.wip))
|
||||
::
|
||||
%veer =/ pax
|
||||
sys/?:(?=(%$ lal.wip) /zuse /vane/[(grow lal.wip)])
|
||||
$(q.ovo what/[[pax hoon/txt.wip] ~])
|
||||
::
|
||||
%wack ..poke(eny `p.wip)
|
||||
::
|
||||
|
@ -44,9 +44,7 @@
|
||||
$> $? %crud ::
|
||||
%heft ::
|
||||
%init :: XX obsolete?
|
||||
%lyra ::
|
||||
%text ::
|
||||
%veer ::
|
||||
%verb ::
|
||||
== ::
|
||||
task:able:dill ::
|
||||
@ -118,11 +116,9 @@
|
||||
(crud p.kyz q.kyz)
|
||||
%blew (send %rez p.p.kyz q.p.kyz)
|
||||
%heft (dump %whey ~)
|
||||
%lyra (dump kyz)
|
||||
%meld (dump kyz)
|
||||
%pack (dump kyz)
|
||||
%crop (dump trim+p.kyz)
|
||||
%veer (dump kyz)
|
||||
%verb (dump kyz)
|
||||
==
|
||||
::
|
||||
|
@ -1098,11 +1098,9 @@
|
||||
[%burl p=@t] :: activate url
|
||||
[%init p=@p] :: set owner
|
||||
[%logo ~] :: logout
|
||||
[%lyra hoon=(unit @t) arvo=@t] :: upgrade kernel
|
||||
[%meld ~] :: unify memory
|
||||
[%pack ~] :: compact memory
|
||||
[%trim p=@ud] :: trim kernel state
|
||||
[%veer p=@ta q=path r=@t] :: install vane
|
||||
[%verb ~] :: verbose mode
|
||||
[%whey ~] :: memory report
|
||||
== ::
|
||||
@ -1121,13 +1119,11 @@
|
||||
[%hook ~] :: this term hung up
|
||||
[%harm ~] :: all terms hung up
|
||||
$>(%init vane-task) :: after gall ready
|
||||
[%lyra hoon=(unit @t) arvo=@t] :: upgrade kernel
|
||||
[%meld ~] :: unify memory
|
||||
[%noop ~] :: no operation
|
||||
[%pack ~] :: compact memory
|
||||
[%talk p=tank] ::
|
||||
[%text p=tape] ::
|
||||
[%veer p=@ta q=path r=@t] :: install vane
|
||||
[%view session=~] :: watch session blits
|
||||
$>(%trim vane-task) :: trim state
|
||||
$>(%vega vane-task) :: report upgrade
|
||||
@ -1190,11 +1186,9 @@
|
||||
$% [%crop p=@ud] :: trim kernel state
|
||||
[%crud p=@tas q=(list tank)] ::
|
||||
[%heft ~] ::
|
||||
[%lyra hoon=(unit @t) arvo=@t] :: upgrade kernel
|
||||
[%meld ~] :: unify memory
|
||||
[%pack ~] :: compact memory
|
||||
[%text p=tape] ::
|
||||
[%veer p=@ta q=path r=@t] :: install vane
|
||||
[%verb ~] :: verbose mode
|
||||
== ::
|
||||
-- ::dill
|
||||
|
Loading…
Reference in New Issue
Block a user