garbage/README.md

58 lines
872 B
Markdown
Raw Normal View History

2019-11-27 01:04:04 +00:00
garbage
=======
2019-06-26 07:46:46 +00:00
2019-12-05 07:36:45 +00:00
[![crates.io](https://img.shields.io/crates/v/garbage.svg)](https://crates.io/crates/garbage)
2019-06-26 07:46:46 +00:00
2019-12-05 07:36:45 +00:00
rust ver of trash-cli, basic functionality is in, code is probably shit (edit: hopefully less shit now)
2019-06-26 07:46:46 +00:00
2019-12-05 07:06:49 +00:00
* **Windows Recycle Bin not supported**
2019-11-27 01:07:47 +00:00
Installation
------------
```
cargo install garbage
```
2019-06-26 07:46:46 +00:00
Usage
-----
```
2019-11-27 01:04:04 +00:00
$ garbage put [-r] file1 file2 ...
2019-06-26 07:46:46 +00:00
2019-11-27 01:04:04 +00:00
$ garbage restore
2019-06-26 07:46:46 +00:00
[..interactive]
2019-11-27 01:04:04 +00:00
$ garbage list
2019-07-23 07:02:05 +00:00
2019-11-27 01:04:04 +00:00
$ garbage empty [days]
2019-06-26 07:46:46 +00:00
```
2019-12-05 07:36:45 +00: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 07:46:46 +00:00
About
-----
Author: Michael Zhang
License: MIT