π Safely delete files with the option to recover them using a sleek CLI interface. This tool is fully compatible with rm
and is inspired by rip
. It's crafted with love in Go.
- π Fully compatible with
rm
- supports all flags and arguments.- π‘οΈ By default,
modern-rm
employsrip
for file deletion.- π Use
rip -u
to undo a deletion.
- π Use
- π οΈ If a flag exclusive to
rm
is provided,modern-rm
will internally invokerm
for file deletion, ensuring full compatibility.
- π‘οΈ By default,
π§ The project is still in development and isn't packaged yet. You'll need to build it from source.
Given its full compatibility with rm
, it's recommended to set modern-rm-go
as an alias for rm
.
```sh
$ modern-rm-go -h
ποΈ modern-rm
π Safely delete files with the option to recover them using a sleek CLI interface π»
π― Fully compatible with `rm` and built on `rip`.
Usage:
modern-rm [files] [flags]
Flags:
-d, --directory π Remove directories (Invokes original rm).
-f, --force π« Ignore nonexistent files and arguments, never prompt
-h, --help π Show help.
-i, --interactive β Prompt before every removal
-I, --once β Prompt once before removing more than three files, or when removing recursively.
-P, --overwrite π Overwrite regular files before deleting them (Invokes original rm).
-r, --recursive Remove directories and their contents recursively
-x, --same-fs π Stay on the same filesystem (Invokes original rm).
-W, --undelete π Attempt to undelete the named files (Invokes original rm).
-u, --undo π Undo the last deletion.
-v, --verbose π Display detailed information about the deletion process.
Written by YeonGyu Kim (public.kim.yeon.gyu@gmail.com)
- https://github.com/code-yeongyu