shrub/main/app/tree/core.hook

21 lines
422 B
Plaintext
Raw Normal View History

2015-01-11 04:33:01 +03:00
// /===lib/sh-utils
!:
|_ [hid=hide ~]
2015-01-10 05:21:25 +03:00
++ peer ,_`.
++ 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]))
--