diff options
| author | lung <git@lung.fyi> | 2026-10-08 21:36:31 +0300 |
|---|---|---|
| committer | lung <git@lung.fyi> | 2026-10-08 21:37:09 +0300 |
| commit | ae21ae98f2945a6a6786939e0d77e9e5a535405c (patch) | |
| tree | 5a0cd771634411ea0f867962b4aff9bd51666b5f /gils/cat.rv | |
| parent | 2219f9b60fb3cd42991bece1fa55a503862d26a8 (diff) | |
cooler ed.rv
Diffstat (limited to 'gils/cat.rv')
| -rw-r--r-- | gils/cat.rv | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gils/cat.rv b/gils/cat.rv index 220ce93..05ab418 100644 --- a/gils/cat.rv +++ b/gils/cat.rv @@ -2,8 +2,10 @@ 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 + +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 |
