2016-10-22 02:44:39 +03:00
|
|
|
:: Kiln: Merge local desk from (optionally-)foreign one
|
2016-01-26 03:52:58 +03:00
|
|
|
::
|
2015-09-12 00:15:25 +03:00
|
|
|
:::: /hoon/merge/hood/gen
|
2016-01-26 03:52:58 +03:00
|
|
|
::
|
2016-02-17 04:40:32 +03:00
|
|
|
/? 310
|
2020-08-28 10:24:25 +03:00
|
|
|
/* help-text %txt /gen/hood/merge/help/txt
|
2018-10-27 02:19:18 +03:00
|
|
|
=, clay
|
2016-11-17 04:42:58 +03:00
|
|
|
::
|
2016-01-26 03:52:58 +03:00
|
|
|
|%
|
2018-03-19 07:18:20 +03:00
|
|
|
++ beaky {knot knot knot ~}
|
2020-11-25 23:22:55 +03:00
|
|
|
++ sorc ?({bek=beaky ~} {her=@p sud=@tas ~})
|
2016-01-26 03:52:58 +03:00
|
|
|
--
|
|
|
|
::
|
|
|
|
::::
|
2016-11-17 04:42:58 +03:00
|
|
|
::
|
2016-01-26 03:52:58 +03:00
|
|
|
:- %say
|
2020-11-25 23:22:55 +03:00
|
|
|
|= $: {now=@da eny=@uvJ bek=beak}
|
|
|
|
{arg={?(~ sorc {syd=$@(desk beaky) sorc})} cas=case gem=?(germ %auto)}
|
2016-01-26 03:52:58 +03:00
|
|
|
==
|
|
|
|
=* our p.bek
|
|
|
|
|^ :- %kiln-merge
|
2020-11-25 23:22:55 +03:00
|
|
|
^- $@(~ {syd=desk her=ship sud=desk cas=case gem=?(germ %auto)})
|
2016-01-26 03:52:58 +03:00
|
|
|
?- arg
|
2020-08-28 10:24:25 +03:00
|
|
|
~ ((slog (turn help-text |=(=@t leaf+(trip t)))) ~)
|
2018-03-19 07:18:20 +03:00
|
|
|
{@ @ ~}
|
2018-11-01 07:18:54 +03:00
|
|
|
=+(arg [sud ?.(=(our her) her (sein:title p.bek now her)) sud (opt-case da+now) gem])
|
2016-02-11 22:20:50 +03:00
|
|
|
::
|
2018-03-19 07:18:20 +03:00
|
|
|
{^ ~}
|
2016-02-11 22:20:50 +03:00
|
|
|
=+ (pars bek.arg)
|
2018-11-01 07:18:54 +03:00
|
|
|
[dez ?.(=(our who) who (sein:title p.bek now who)) dez (opt-case caz) gem]
|
2016-02-11 22:20:50 +03:00
|
|
|
::
|
2018-03-19 07:18:20 +03:00
|
|
|
{* @ @ ~}
|
2016-02-11 22:20:50 +03:00
|
|
|
:- (pars-src syd.arg)
|
|
|
|
=+(arg [her sud (opt-case da+now) gem])
|
|
|
|
::
|
2018-03-19 07:18:20 +03:00
|
|
|
{* ^ ~}
|
2016-02-11 22:20:50 +03:00
|
|
|
:- (pars-src syd.arg)
|
2016-02-17 00:43:28 +03:00
|
|
|
=+((pars bek.arg) [who dez (opt-case caz) gem])
|
2016-01-26 03:52:58 +03:00
|
|
|
==
|
2020-11-25 23:22:55 +03:00
|
|
|
++ opt-case |=(a=case ?:(=(*case cas) a cas)) :: override
|
|
|
|
++ pars |=(a=beaky `{{who=ship dez=desk caz=case} *}`(need (de-beam:format a)))
|
2016-01-26 03:52:58 +03:00
|
|
|
++ pars-src
|
2020-11-25 23:22:55 +03:00
|
|
|
|= syd=$@(desk beaky)
|
2016-01-26 03:52:58 +03:00
|
|
|
?@ syd syd
|
|
|
|
=+ (pars syd)
|
|
|
|
~| [%into-foreign who `path`syd]
|
|
|
|
?>(=(our who) dez)
|
|
|
|
--
|