MCPcopy Index your code
hub / github.com/AmineZouitine/rmt.rs

github.com/AmineZouitine/rmt.rs @0.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.2.1 ↗ · + Follow
92 symbols 224 edges 14 files 13 documented · 14%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🗑️ Rmt.rs

<img width="200" src="https://user-images.githubusercontent.com/53370597/195205359-21b93716-f78d-4200-9102-ce6145750303.png">

Fun fact: Stable diffusion generated this logo 🎨

Rmt is similar to the rm command, but it allows me to save the deleted elements in the trash. If you wish, you can restore the previously deleted elements of your choice (or delete them forever) with a cli.

UmzJ1r8Z7D

‼️ Rmt is not stable yet, do not use it for critical usages for the moment

👨🏽‍💻 Installation

⚡️ Quick start

Download the binary depending on your configuration here: https://github.com/AmineZouitine/rmt.rs/releases

Then you just need to enter this command in your terminal:

tar -xf <downloaded_archive> rmt && sudo mv rmt /usr/local/bin
````

### 😎 Pro tip (optional)

Add **rmt** as an **alias** instead of the **rm** command.
## Features

### 🚮 Delete an element (but it is saved in the trash don't worry)

```sh
rmt [OPTION]... [FILE|FOLDER]...

Exemples: 
rmt text.txt
rmt * -- -text.txt
rmt folder test.txt *.sh

✨ I like to use -f option, to remove all the warnings.

📺 Launch CLI to restore or flush elements

rmt --td

❌ Flush all element from the trash

rmt --tf

🔎 Informations about the trash

rmt --ti

🔧 Using the configuration file

You can customize the behavior of the trash bin by editing the configuration file located at ~/.trash_rmt/config_rmt.yml.

Currently, you have the option to encrypt your data so that it becomes unreadable from the trash. Compression is a feature that will be available in the future.

compression: false # not implemented yet
encryption: true
trash: null

🫵 Contribution

You can find all the information in the file CONTRIBUTING.md. Hoping to see you soon in my pull request 😊

Core symbols most depended-on inside this repo

get
called by 18
src/data_manager.rs
find_all_trash_items
called by 9
src/data_manager.rs
clear_structure
called by 8
src/structure_manager.rs
get_data_base_table_name
called by 8
src/structure_manager.rs
setup_structure
called by 6
src/structure_manager.rs
get_trash_directory_path
called by 6
src/structure_manager.rs
insert_trash_item
called by 6
src/data_manager.rs
get_user_validation
called by 3
src/display_manager.rs

Shape

Function 70
Method 13
Class 7
Enum 2

Languages

Rust100%

Modules by API surface

src/structure_manager.rs21 symbols
src/data_manager.rs15 symbols
tests/arguments_tests.rs11 symbols
src/display_manager.rs11 symbols
src/trash_manager.rs10 symbols
src/input_manager.rs4 symbols
src/database_errors.rs4 symbols
src/argument_errors.rs4 symbols
src/trash_item.rs3 symbols
src/config.rs3 symbols
src/arguments_manager.rs3 symbols
src/config_manager.rs2 symbols

For agents

$ claude mcp add rmt.rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact