No description
Find a file
2019-12-26 19:33:13 -06:00
.github/workflows wtf. 2019-12-26 19:10:50 -06:00
src yolo 2019-12-26 19:33:13 -06:00
.editorconfig initial 2019-06-26 02:46:46 -05:00
.gitignore initial 2019-06-26 02:46:46 -05:00
Cargo.lock yolo 2019-12-26 19:33:13 -06:00
Cargo.toml yolo 2019-12-26 19:33:13 -06:00
README.md aaa 2019-12-05 01:36:45 -06:00
run-tests.sh testing? 2019-12-05 01:57:50 -06:00
tests.Dockerfile testing? 2019-12-05 01:57:50 -06:00

garbage

crates.io

rust ver of trash-cli, basic functionality is in, code is probably shit (edit: hopefully less shit now)

  • Windows Recycle Bin not supported

Installation

cargo install garbage

Usage

$ garbage put [-r] file1 file2 ...

$ garbage restore
[..interactive]

$ garbage list

$ garbage empty [days]

If you use a bash-ish shell, feel free to add this to your shell's rc file:

alias rm='$HOME/.cargo/bin/garbage put' # or wherever garbage is

Features

  • Put
  • List
  • Restore (need to fuck around with DeletionStrategy)
  • Tests...

Spec Compliance

  • Picking a Trash Directory
  • Emptying
  • Directory size cache

About

Author: Michael Zhang

License: MIT