sfrm

Crates.iosfrm
lib.rssfrm
version0.1.0
sourcesrc
created_at2022-03-20 15:53:45.570363
updated_at2022-03-20 15:53:45.570363
descriptionSafe rm alternative
homepagehttps://gitlab.com/magmast/sfrm
repositoryhttps://gitlab.com/magmast/sfrm
max_upload_size
id553612
size28,470
Maciej Augustyniak (magmast)

documentation

https://docs.rs/sfrm

README

sfrm

alias rm="sfrm" and never remove anything accidentally.

Simple alternative to rm command, which puts removed files to trash instead of removing them. I think it doesn't need much explanation of why is it useful.

CLI usage should be 100% compatible with rm command. But it isn't as I don't really need that. So instead it currently supports only the things listed in the table below and I'll implement more of them when I'll need them or someone will request it.

Feature Supported
-f, --force Yes
-i No
-I No
--interactive[=WHEN] No
--one-file-system No
--preserve-root[=all] No
-r, -R, --recursive Yes*
-d, --dir Yes
-v, --verbose No
--help Yes
--version Yes
Compatible output No

* Only -r and --recursive are supported.

Installation

cargo install sfrm
echo 'alias rm="sfrm"' >> ~/.bashrc # (optional) replace .bashrc with appropriate file for your shell

License

This project is licensed under the MIT license or the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.

Commit count: 10

cargo fmt