mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-20 21:31:32 +03:00
36 lines
719 B
Plaintext
36 lines
719 B
Plaintext
:: ConCATenate file listings
|
|
::
|
|
:::: /hook/core/cat/app
|
|
::
|
|
/+ sh-utils
|
|
// /%%%/ls/subdir
|
|
!:
|
|
::::
|
|
::
|
|
|_ [hid=hide ~]
|
|
++ peer ,_`.
|
|
++ poke--args
|
|
%+ args-into-gate .
|
|
|= [arg=(list path)]
|
|
=- tang/(zing -)
|
|
%+ turn arg
|
|
|= pax=path
|
|
^- tang
|
|
=+ ark=;;(arch .^(%cy pax))
|
|
?^ q.ark
|
|
:- leaf/(spud pax)
|
|
%+ turn (lore ;;(@t .^(%cx pax)))
|
|
|=(a=cord leaf/(trip a))
|
|
?- r.ark :: handle ambiguity
|
|
~
|
|
[rose/[" " `~]^~[leaf/"~" (smyt pax)]]~
|
|
[[@t ~] ~ ~]
|
|
$(pax (welp pax /[p.n.r.ark]))
|
|
*
|
|
=- [palm/[": " ``~]^-]~
|
|
:~ rose/[" " `~]^~[leaf/"*" (smyt pax)]
|
|
`tank`(subdir pax r.ark)
|
|
==
|
|
==
|
|
--
|