diff options
| author | hachem <im@hachem.wtf> | 2026-10-06 12:49:46 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-10-06 12:49:46 +0200 |
| commit | 5d4a723a5f157c0ed38a348099a600d1d21c3c2b (patch) | |
| tree | 70e5fdf560a64cd0eb3a13d88ce046ddd29fd077 /gils/rm.rv | |
| parent | 52dab7fc85d877e80e3032f0afabae906adebad8 (diff) | |
feat: gils core utils and other shit
Diffstat (limited to 'gils/rm.rv')
| -rw-r--r-- | gils/rm.rv | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gils/rm.rv b/gils/rm.rv new file mode 100644 index 0000000..92e21c7 --- /dev/null +++ b/gils/rm.rv @@ -0,0 +1,6 @@ +# delete a file or an empty directory + +const context = env.ctx +const parsed = arg_name(context.rest, 0) +if parsed.name:len() == 0 do puts("usage: rm <path>\n") end +else do fs:rm(abspath(parsed.name)) end |
