mirror of
https://github.com/urbit/shrub.git
synced 2025-01-05 19:46:50 +03:00
24 lines
434 B
Plaintext
24 lines
434 B
Plaintext
// /===/lib/sh-utils
|
|
!:
|
|
|_ [hid=hide ~]
|
|
++ poke-tree-args
|
|
%+ args-into-gate .
|
|
|= [pax=path fla=$|(~ [%full ~])]
|
|
=+ len=(lent pax)
|
|
=+ rend=?^(fla dank:ut |=(a=path (dank:ut (slag len a))))
|
|
:- %tang
|
|
|- ^- (list tank)
|
|
=+ ark=;;(arch .^(cy/pax))
|
|
=- ?~ q.ark -
|
|
[(rend pax) -]
|
|
%- zing
|
|
%+ turn
|
|
(sort (~(tap by r.ark)) aor)
|
|
|= [a=@t ~]
|
|
^$(pax (welp pax /[a]))
|
|
++ peer
|
|
|=
|
|
*
|
|
`+>
|
|
--
|