mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-10 10:05:09 +03:00
zuse, clay, various: unflop the spur in beams
Unflops the spur in +en-beam, +de-beam, and everything that calls either of those, or works with the consequences of their output. This includes clay's interface for mounting and unmounting, which now no longer expects the arguments to contain an old-style spur.
This commit is contained in:
parent
79f698c3a9
commit
27d6fc7597
@ -248,7 +248,7 @@
|
||||
::
|
||||
=? a &(?=(^ a) =('' i.a))
|
||||
t.a
|
||||
(fall (de-beam:format a) [`beak`[p q r]:dir (flop a)])
|
||||
(fall (de-beam:format a) [`beak`[p q r]:dir a])
|
||||
=+ vez=hoon-parser
|
||||
(sear plex:vez (stag %clsg poor:vez))
|
||||
::
|
||||
@ -591,7 +591,7 @@
|
||||
%0 ~
|
||||
%1 [[%rose [~ " " ~] (skol p.q.cay) ~] maar]
|
||||
%2 [[%rose [~ " " ~] (dy-show-type-noun p.q.cay) ~] maar]
|
||||
::%3 handled above
|
||||
::%3 handled above
|
||||
%4 ~
|
||||
%5 [[%rose [~ " " ~] (xskol p.q.cay) ~] maar]
|
||||
==
|
||||
@ -1014,7 +1014,7 @@
|
||||
"/" ?:(=(%home q.dir) "=" (trip q.dir))
|
||||
"/" ?:(=([%ud 0] r.dir) "=" (scow r.dir))
|
||||
==
|
||||
?:(=(~ s.dir) "" (spud (flop s.dir)))
|
||||
?:(=(~ s.dir) "" (spud s.dir))
|
||||
::
|
||||
++ he-prom :: send prompt
|
||||
%- he-diff
|
||||
|
@ -67,7 +67,7 @@
|
||||
|- ^+ [fex this]
|
||||
?~ daz [fex this]
|
||||
=/ dap-pax=path /app/[i.daz]/hoon
|
||||
=/ dap-arch .^(arch cy+(en-beam now-beak (flop dap-pax)))
|
||||
=/ dap-arch .^(arch cy+(en-beam now-beak dap-pax))
|
||||
?~ fil.dap-arch
|
||||
$(daz t.daz)
|
||||
=/ sing=card
|
||||
|
@ -116,7 +116,7 @@
|
||||
:: pax: full path at `tyl`
|
||||
:: lon: directory at `tyl`
|
||||
::
|
||||
=/ pax (en-beam:format bec tyl)
|
||||
=/ pax (en-beam:format bec (flop tyl))
|
||||
=/ lon .^(arch %cy pax)
|
||||
=? hav ?=(^ fil.lon)
|
||||
::
|
||||
|
@ -12,6 +12,6 @@
|
||||
==
|
||||
?~ pot
|
||||
=+ bem=(need (de-beam:format pax))
|
||||
$(pot ~[?^(s.bem i.s.bem q.bem)])
|
||||
$(pot ~[?^(s.bem (rear s.bem) q.bem)])
|
||||
:- %kiln-mount
|
||||
[pax v.pot]
|
||||
|
@ -256,7 +256,7 @@
|
||||
:: pax: full path at `tyl`
|
||||
:: lon: directory at `tyl`
|
||||
::
|
||||
=/ pax (en-beam:format bec tyl)
|
||||
=/ pax (en-beam:format bec (flop tyl))
|
||||
=/ lon .^(arch %cy pax)
|
||||
=? hav ?=(^ fil.lon)
|
||||
?. ?=({$hoon *} tyl)
|
||||
|
@ -5,5 +5,5 @@
|
||||
[%tang >timers< ~]
|
||||
.^ (list [date=@da =duct])
|
||||
%bx
|
||||
(en-beam:format [p.bec %$ r.bec] /timers/debug)
|
||||
(en-beam:format [p.bec %$ r.bec] /debug/timers)
|
||||
==
|
||||
|
@ -424,7 +424,7 @@
|
||||
=/ m (strand ,vase)
|
||||
^- form:m
|
||||
;< =riot:clay bind:m
|
||||
(warp ship desk ~ %sing %a case (flop spur))
|
||||
(warp ship desk ~ %sing %a case spur)
|
||||
?~ riot
|
||||
(strand-fail %build-file >arg< ~)
|
||||
?> =(%vase p.r.u.riot)
|
||||
@ -468,7 +468,7 @@
|
||||
|= [[=ship =desk =case:clay] =spur]
|
||||
=* arg +<
|
||||
=/ m (strand ,cage)
|
||||
;< =riot:clay bind:m (warp ship desk ~ %sing %x case (flop spur))
|
||||
;< =riot:clay bind:m (warp ship desk ~ %sing %x case spur)
|
||||
?~ riot
|
||||
(strand-fail %read-file >arg< ~)
|
||||
(pure:m r.u.riot)
|
||||
@ -476,14 +476,14 @@
|
||||
++ check-for-file
|
||||
|= [[=ship =desk =case:clay] =spur]
|
||||
=/ m (strand ,?)
|
||||
;< =riot:clay bind:m (warp ship desk ~ %sing %x case (flop spur))
|
||||
;< =riot:clay bind:m (warp ship desk ~ %sing %x case spur)
|
||||
(pure:m ?=(^ riot))
|
||||
::
|
||||
++ list-tree
|
||||
|= [[=ship =desk =case:clay] =spur]
|
||||
=* arg +<
|
||||
=/ m (strand ,(list path))
|
||||
;< =riot:clay bind:m (warp ship desk ~ %sing %t case (flop spur))
|
||||
;< =riot:clay bind:m (warp ship desk ~ %sing %t case spur)
|
||||
?~ riot
|
||||
(strand-fail %list-tree >arg< ~)
|
||||
(pure:m !<((list path) q.r.u.riot))
|
||||
|
@ -2581,7 +2581,7 @@
|
||||
=- ?~(- ~ `[nam (lent s.bem) (silt `(list path)`-)])
|
||||
%+ skim can
|
||||
|= pax/path
|
||||
&(=(p.bem our) =(q.bem syd) =((flop s.bem) (scag (lent s.bem) pax)))
|
||||
&(=(p.bem our) =(q.bem syd) =(s.bem (scag (lent s.bem) pax)))
|
||||
::
|
||||
:: Mount a beam to unix
|
||||
::
|
||||
@ -4069,7 +4069,7 @@
|
||||
!! :: fire next in queue
|
||||
=^ mos ruf
|
||||
=/ den ((de our now ski hen ruf) our q.bem)
|
||||
abet:(into:den (flop s.bem) all.req fis.req)
|
||||
abet:(into:den s.bem all.req fis.req)
|
||||
[mos ..^$]
|
||||
::
|
||||
%merg :: direct state up
|
||||
|
@ -5515,7 +5515,7 @@
|
||||
++ en-beam :: beam to path
|
||||
|= bem/beam
|
||||
^- path
|
||||
[(scot %p p.bem) q.bem (scot r.bem) (flop s.bem)]
|
||||
[(scot %p p.bem) q.bem (scot r.bem) s.bem]
|
||||
:: :: ++de-beam:format
|
||||
++ de-beam :: parse path to beam
|
||||
|= pax/path
|
||||
@ -5528,7 +5528,7 @@
|
||||
%+ biff (slay i.t.t.pax)
|
||||
|= cis/coin
|
||||
?. ?=({$$ case} cis) ~
|
||||
`(unit beam)`[~ [who dex `case`p.cis] (flop t.t.t.pax)]
|
||||
`(unit beam)`[~ [who dex `case`p.cis] t.t.t.pax]
|
||||
::
|
||||
++ json-rn :: json to rn parser
|
||||
%+ knee *rn |.
|
||||
|
@ -8,6 +8,6 @@
|
||||
=+ !<([pax=path ~] arg)
|
||||
?~ bem=(de-beam:format pax)
|
||||
(strand-fail:strand %path-not-beam >pax< ~)
|
||||
=/ =mars:clay [i.t i]:?>(?=([@ @ ~] s.u.bem) s.u.bem)
|
||||
=/ =mars:clay [i i.t]:?>(?=([@ @ ~] s.u.bem) s.u.bem)
|
||||
;< =tube:clay bind:m (build-cast:strandio -.u.bem mars)
|
||||
(pure:m !>(tube))
|
||||
|
@ -8,6 +8,6 @@
|
||||
=+ !<([pax=path ~] arg)
|
||||
?~ bem=(de-beam:format pax)
|
||||
(strand-fail:strand %path-not-beam >pax< ~)
|
||||
=/ =mark (head s.u.bem)
|
||||
=/ =mark (rear s.u.bem)
|
||||
;< =dais:clay bind:m (build-mark:strandio -.u.bem mark)
|
||||
(pure:m !>(dais))
|
||||
|
@ -23,7 +23,7 @@
|
||||
^- form:m
|
||||
=/ beam (need (de-beam:format path))
|
||||
;< =riot:clay bind:m
|
||||
(warp:strandio p.beam q.beam ~ %sing %x r.beam (flop s.beam))
|
||||
(warp:strandio p.beam q.beam ~ %sing %x r.beam s.beam)
|
||||
?~ riot
|
||||
(strand-fail:strandio %file-not-found >path< ~)
|
||||
(pure:m r.u.riot)
|
||||
|
@ -80,20 +80,20 @@
|
||||
=* loop $
|
||||
?~ bez
|
||||
(pure:m fiz)
|
||||
;< hav=? bind:m (check-for-file:strandio -.i.bez hoon+s.i.bez)
|
||||
;< hav=? bind:m (check-for-file:strandio -.i.bez (snoc s.i.bez %hoon))
|
||||
?: hav
|
||||
loop(bez t.bez, fiz (~(put in fiz) [i.bez(s hoon+s.i.bez) ~]))
|
||||
loop(bez t.bez, fiz (~(put in fiz) [i.bez(s (snoc s.i.bez %hoon)) ~]))
|
||||
;< fez=(list path) bind:m (list-tree:strandio i.bez)
|
||||
?. =(~ fez)
|
||||
=/ foz (turn fez |=(path [[-.i.bez (flop +<)] ~]))
|
||||
=/ foz (turn fez |=(path [[-.i.bez +<] ~]))
|
||||
loop(bez t.bez, fiz (~(gas in fiz) foz))
|
||||
~| bad-test-beam+i.bez
|
||||
=/ tex=term =-(?>(((sane %tas) -) -) (head s.i.bez))
|
||||
=/ xup=path (tail s.i.bez)
|
||||
;< hov=? bind:m (check-for-file:strandio i.bez(s hoon+xup))
|
||||
=/ tex=term =-(?>(((sane %tas) -) -) (rear s.i.bez))
|
||||
=/ xup=path (snip s.i.bez)
|
||||
;< hov=? bind:m (check-for-file:strandio i.bez(s (snoc xup %hoon)))
|
||||
?. hov
|
||||
~|(no-tests-at-path+i.bez !!)
|
||||
loop(bez t.bez, fiz (~(put in fiz) [[-.i.bez hoon+xup] `tex]))
|
||||
loop(bez t.bez, fiz (~(put in fiz) [[-.i.bez (snoc xup %hoon)] `tex]))
|
||||
--
|
||||
^- thread:spider
|
||||
|= arg=vase
|
||||
@ -107,7 +107,7 @@
|
||||
|- ^- form:m
|
||||
=* gather-tests $
|
||||
?^ fiz
|
||||
~> %slog.0^leaf+"test: building {(spud (flop s.beam.i.fiz))}"
|
||||
~> %slog.0^leaf+"test: building {(spud s.beam.i.fiz)}"
|
||||
;< cor=vase bind:m (build-file:strandio beam.i.fiz)
|
||||
=/ arms=(list test-arm) (get-test-arms cor)
|
||||
=? arms ?=(^ test.i.fiz)
|
||||
@ -116,7 +116,7 @@
|
||||
?: =(name.i.arms u.test.i.fiz)
|
||||
[i.arms]~
|
||||
$(arms t.arms)
|
||||
=. test-arms (~(put by test-arms) (flop (tail s.beam.i.fiz)) arms)
|
||||
=. test-arms (~(put by test-arms) (snip s.beam.i.fiz) arms)
|
||||
gather-tests(fiz t.fiz)
|
||||
%- pure:m !> ^= ok
|
||||
%+ roll (resolve-test-paths test-arms)
|
||||
|
@ -2369,7 +2369,7 @@
|
||||
++ scry-provides-code ^- sley
|
||||
|= [* (unit (set monk)) =term =beam]
|
||||
^- (unit (unit cage))
|
||||
?: &(=(%ca term) =(/hoon/handler/gen s.beam))
|
||||
?: &(=(%ca term) =(/gen/handler/hoon s.beam))
|
||||
:+ ~ ~
|
||||
vase+!>(!>(|=(* |=(* [[%404 ~] ~]))))
|
||||
?: &(=(%cb term) =(/json s.beam))
|
||||
|
@ -85,7 +85,7 @@
|
||||
:: path)
|
||||
::
|
||||
++ test-beam
|
||||
=/ b=beam [[p=~zod q=%home r=[%ud p=12]] s=/hoon/zuse/sys]
|
||||
=/ b=beam [[p=~zod q=%home r=[%ud p=12]] s=/sys/zuse/hoon]
|
||||
=/ p=path /~zod/home/12/sys/zuse/hoon
|
||||
;: weld
|
||||
:: proper encode
|
||||
|
Loading…
Reference in New Issue
Block a user