8 releases
0.3.0 | Feb 26, 2024 |
---|---|
0.2.0 | Feb 20, 2024 |
0.1.6 | Feb 15, 2024 |
0.1.5 | Jan 20, 2024 |
0.1.3 | Dec 2, 2023 |
#2625 in Command line utilities
92 downloads per month
18KB
458 lines
Wrm - Remove files or directories
Installation
Run the following Cargo command:
cargo install wrm
Usage
To move files to trash($HOME/.local/share/wrm/trash
):
wrm foo bar ...
To destroy files:
wrm --destroy ~/.local/share/wrm/trash/foo ~/.local/share/wrm/trash/bar ...
To restore files in trash to where they came from:
wrm --restore ~/.local/share/wrm/trash/foo ~/.local/share/wrm/trash/bar ...
To list all files and directories in trash:
wrm --list
To delete all files and directories in trash permanently:
wrm --empty
Options
-n, --noninteractive Do not prompt whether to change destinations
-q, --quiet Do not print log messages
-h, --help Print help
-V, --version Print version
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
TODO
- Follow the Freedesktop.org Trash Specifications
- Add shell completions
- Add auto empty
- Multiplatform support
- Create rich UI
- Optimize performance
Dependencies
~7–20MB
~222K SLoC