mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-17 11:51:32 +03:00
23 lines
396 B
Plaintext
23 lines
396 B
Plaintext
!:
|
|
:: /=main=/bin/cat/hoon
|
|
::
|
|
|= *
|
|
|= ape=(list path)
|
|
=- ~[-]~
|
|
^- gift :- %te
|
|
%- zing
|
|
%+ turn ape |= pax=path
|
|
^- wain
|
|
=+ ark=;;(arch .^(%cy pax))
|
|
?~ q.ark
|
|
?- r.ark
|
|
~
|
|
~[(crip "No file {(spud pax)}")]
|
|
[[@t ~] ~ ~]
|
|
$(pax (welp pax /[p.n.r.ark]))
|
|
*
|
|
~[(crip "Multiple in {(spud pax)}")]
|
|
==
|
|
:- (crip (spud pax))
|
|
(lore ;;(,@t .^(%cx pax)))
|