code-yeongyu / modern-rm-go

Safely delete with recovery in a sleek CLI interface. Fully compatible with `rm`. Based on `rip`.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸš€ 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. 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
$ 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

About

Safely delete with recovery in a sleek CLI interface. Fully compatible with `rm`. Based on `rip`.

License:MIT License


Languages

Language:Go 100.0%