From 5d4a723a5f157c0ed38a348099a600d1d21c3c2b Mon Sep 17 00:00:00 2001 From: hachem Date: Tue, 6 Oct 2026 12:49:46 +0200 Subject: feat: gils core utils and other shit --- gils/cat.rv | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 gils/cat.rv (limited to 'gils/cat.rv') diff --git a/gils/cat.rv b/gils/cat.rv new file mode 100644 index 0000000..1cca54b --- /dev/null +++ b/gils/cat.rv @@ -0,0 +1,10 @@ +# meow + +const context = env.ctx +const parsed = arg_name(context.rest, 0) +if parsed.name:len() == 0 do puts("usage: cat \n") end +else do + const path = abspath(parsed.name) + if vfs_owns(path) do vfs_cat(path) end + else do fs:cat(path) end +end -- cgit v1.3