No description
Find a file
2020-11-02 20:24:50 -06:00
src Only list files in the current directory unless --all is passed 2020-11-02 20:24:50 -06:00
.build.yml change to archlinux images cus musl doesn't support proc-macros 2020-05-27 20:15:23 -05:00
.editorconfig initial 2019-06-26 02:46:46 -05:00
.gitignore initial 2019-06-26 02:46:46 -05:00
Cargo.lock Print file list in a table 2020-11-02 20:20:53 -06:00
Cargo.toml Print file list in a table 2020-11-02 20:20:53 -06:00
LICENSE update readme + license 2020-05-27 16:37:12 -05:00
README.md add sourcehut build badge and remove deps.rs one 2020-05-27 20:22:01 -05:00
rustfmt.toml Format code using max_width = 80 + wrap_comments = true 2020-10-31 19:56:51 -05:00

garbage

builds.sr.ht status crates.io

Rust ver of trash-cli.

  • Windows/Recycle Bin not supported

Installation

cargo install garbage

Usage

Run garbage --help to understand how it's used!

$ garbage put 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='garbage put' # Make sure garbage is in your path

Features

  • Put
  • List
  • Restore
  • Tests...

Spec Compliance

  • Picking a Trash Directory
  • Emptying
  • Directory size cache (optional)

Issues

If you find a bug or are requesting a feature, file it here: https://todo.sr.ht/~iptq/garbage

About

Author: Michael Zhang

License: MIT