https://github.com/code-yeongyu/modern-rm-go
Safely delete with recovery in a sleek CLI interface. Fully compatible with `rm`. Based on `rip`.
https://github.com/code-yeongyu/modern-rm-go
Last synced: 2 months ago
JSON representation
Safely delete with recovery in a sleek CLI interface. Fully compatible with `rm`. Based on `rip`.
- Host: GitHub
- URL: https://github.com/code-yeongyu/modern-rm-go
- Owner: code-yeongyu
- License: mit
- Created: 2023-09-13T12:18:18.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-14T03:08:36.000Z (over 1 year ago)
- Last Synced: 2025-01-04T04:13:30.974Z (4 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🚀 modern-rm-go
🔒 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`](https://github.com/nivekuil/rip). It's crafted with love in Go.
## 🌟 Features
- 🔄 Fully compatible with `rm` - supports all flags and arguments.
- 🛡️ By default, `modern-rm` employs `rip` for file deletion.
- 🔄 Use `rip -u` to undo a deletion.
- 🛠️ If a flag exclusive to `rm` is provided, `modern-rm` will internally invoke `rm` for file deletion, ensuring full compatibility.## 📦 Installation
🚧 The project is still in development and isn't packaged yet. You'll need to build it from source.
## 🛠️ Usage
Given its full compatibility with `rm`, it's recommended to set `modern-rm-go` as an alias for `rm`.
```sh
```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 ([email protected])
- https://github.com/code-yeongyu
```