mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-12 22:46:11 +03:00
Merge pull request #6022 from dr-frmr/hw/aqua-swap-files-fix
aqua: make `%swap-files` poke take a desk and add it to pill
This commit is contained in:
commit
7940dd442b
@ -7,6 +7,7 @@
|
|||||||
:: OR
|
:: OR
|
||||||
:: :aqua &pill +solid
|
:: :aqua &pill +solid
|
||||||
::
|
::
|
||||||
|
:: XX: update these examples
|
||||||
:: Then try stuff:
|
:: Then try stuff:
|
||||||
:: :aqua [%init ~[~bud ~dev]]
|
:: :aqua [%init ~[~bud ~dev]]
|
||||||
:: :aqua [%dojo ~[~bud ~dev] "[our eny (add 3 5)]"]
|
:: :aqua [%dojo ~[~bud ~dev] "[our eny (add 3 5)]"]
|
||||||
@ -480,14 +481,15 @@
|
|||||||
=^ ms state (poke-pill pil)
|
=^ ms state (poke-pill pil)
|
||||||
(emit-cards ms)
|
(emit-cards ms)
|
||||||
::
|
::
|
||||||
[%swap-files ~]
|
[%swap-files @tas]
|
||||||
|
=/ =desk +.val
|
||||||
=. userspace-ova.pil
|
=. userspace-ova.pil
|
||||||
=/ slim-dirs=(list path)
|
:: take all files from a userspace desk
|
||||||
~[/app /ted /gen /lib /mar /sur /hoon/sys /arvo/sys /zuse/sys]
|
=/ all-dirs=(list path) ~[/]
|
||||||
:_ ~
|
:_ ~
|
||||||
%- unix-event:pill-lib
|
%- unix-event:pill-lib
|
||||||
%- %*(. file-ovum:pill-lib directories slim-dirs)
|
%+ %*(. file-ovum:pill-lib directories all-dirs)
|
||||||
/(scot %p our.hid)/work/(scot %da now.hid)
|
desk /(scot %p our.hid)/[desk]/(scot %da now.hid)
|
||||||
=^ ms state (poke-pill pil)
|
=^ ms state (poke-pill pil)
|
||||||
(emit-cards ms)
|
(emit-cards ms)
|
||||||
::
|
::
|
||||||
|
Loading…
Reference in New Issue
Block a user