mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 20:02:51 +03:00
29 lines
566 B
Plaintext
29 lines
566 B
Plaintext
:: ConCATenate file listings
|
|
::
|
|
:::: /hook/gate/cat/cat
|
|
::
|
|
// /%%/ls/subdir
|
|
// /%/pretty
|
|
!:
|
|
::::
|
|
::
|
|
|= [^ [arg=(list path)] ~]
|
|
=- tang/(zing -)
|
|
%+ turn arg
|
|
|= pax=path
|
|
^- tang
|
|
=+ ark=;;(arch .^(%cy pax))
|
|
?^ q.ark
|
|
[leaf/(spud pax) (pretty-file .^(%cx pax))]
|
|
?- 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)
|
|
==
|
|
==
|