garbage/README.md

58 lines
872 B
Markdown
Raw Normal View History

2019-11-26 19:04:04 -06:00
garbage
=======
2019-06-26 02:46:46 -05:00
2019-12-05 01:36:45 -06:00
[![crates.io](https://img.shields.io/crates/v/garbage.svg)](https://crates.io/crates/garbage)
2019-06-26 02:46:46 -05:00
2019-12-05 01:36:45 -06:00
rust ver of trash-cli, basic functionality is in, code is probably shit (edit: hopefully less shit now)
2019-06-26 02:46:46 -05:00
2019-12-05 01:06:49 -06:00
* **Windows Recycle Bin not supported**
2019-11-26 19:07:47 -06:00
Installation
------------
```
cargo install garbage
```
2019-06-26 02:46:46 -05:00
Usage
-----
```
2019-11-26 19:04:04 -06:00
$ garbage put [-r] file1 file2 ...
2019-06-26 02:46:46 -05:00
2019-11-26 19:04:04 -06:00
$ garbage restore
2019-06-26 02:46:46 -05:00
[..interactive]
2019-11-26 19:04:04 -06:00
$ garbage list
2019-07-23 02:02:05 -05:00
2019-11-26 19:04:04 -06:00
$ garbage empty [days]
2019-06-26 02:46:46 -05:00
```
2019-12-05 01:36:45 -06:00
If you use a bash-ish shell, feel free to add this to your shell's rc file:
```sh
alias rm='$HOME/.cargo/bin/garbage put' # or wherever garbage is
```
Features
--------
- [x] Put
- [ ] List
- [ ] Restore (need to fuck around with DeletionStrategy)
- [ ] Tests...
Spec Compliance
---------------
- [x] Picking a Trash Directory
- [x] Emptying
- [ ] Directory size cache
2019-06-26 02:46:46 -05:00
About
-----
Author: Michael Zhang
License: MIT