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
|
|
|
|%
|
2020-11-26 17:09:31 +03:00
|
|
|
+$ beaky [knot knot knot ~]
|
|
|
|
+$ 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-26 17:09:31 +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-26 17:09:31 +03:00
|
|
|
^- $@(~ [syd=desk her=ship sud=desk cas=case gem=?(germ %auto)])
|
2016-01-26 03:52:58 +03:00
|
|
|
?- arg
|
2021-03-05 08:17:50 +03:00
|
|
|
~ ((slog (turn `wain`help-text |=(=@t leaf+(trip t)))) ~)
|
2020-11-26 17:09:31 +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
|
|
|
::
|
2020-11-26 17:09:31 +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
|
|
|
::
|
2020-11-26 17:09:31 +03:00
|
|
|
[* @ @ ~]
|
2016-02-11 22:20:50 +03:00
|
|
|
:- (pars-src syd.arg)
|
|
|
|
=+(arg [her sud (opt-case da+now) gem])
|
|
|
|
::
|
2020-11-26 17:09:31 +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
|
2020-12-06 12:03:12 +03:00
|
|
|
++ pars |=(a=beaky `[[who=ship dez=desk caz=case] *]`(need (de-beam 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)
|
|
|
|
--
|