hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/gils/cat.rv
blob: 220ce93649e01623f337b0a577a4dee42eefc6ee (plain)
1
2
3
4
5
6
7
8
9
10
# meow

const context = env.ctx
const parsed = arg_name(context.rest, 0)
if parsed.name:len() == 0 do puts("usage: cat <path>\n") end
else do
  const path = expand_path(parsed.name)
  if vfs_owns(path) do vfs_cat(path) end
  else do fs:cat(path) end
end