https://github.com/0xmrtt/trashctl
A command line interface for trash written in Rust (WIP)
https://github.com/0xmrtt/trashctl
clap clap-rs cli ctl freedesktop rust rust-cli rust-lang trash trash-management trashctl
Last synced: about 1 month ago
JSON representation
A command line interface for trash written in Rust (WIP)
- Host: GitHub
- URL: https://github.com/0xmrtt/trashctl
- Owner: 0xMRTT
- License: gpl-3.0
- Created: 2022-06-27T11:41:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-30T22:45:25.000Z (over 3 years ago)
- Last Synced: 2025-02-12T14:57:10.131Z (about 1 year ago)
- Topics: clap, clap-rs, cli, ctl, freedesktop, rust, rust-cli, rust-lang, trash, trash-management, trashctl
- Language: Rust
- Homepage: https://0xMRTT.github.io/trashctl
- Size: 1.13 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# `trashctl`
A command line interface for trash
[](https://opensource.org/licenses/)
[](https://github.com/0xMRTT/trashctl/actions/workflows/matrix.yml)
[](https://github.com/0xMRTT/trashctl/actions/workflows/deploy.yml)
[](https://github.com/0xMRTT/trashctl/actions/workflows/rust.yml)
## Features
- Add file to trash
- List files
- Permanently delete a file
- Restore file
- Empty the trash
## Documentation
If you want a complete [documentation](https://docs.rs/trashctl), see the doc on [docs.rs](https://docs.rs/trashctl). Otherwise, read the [book](https://0xMRTT.github.io/trashctl)
## Screenshots

## Installation
Install with `cargo`
```bash
cargo install trashctl
```
### AUR
Install from the AUR
```bash
yay -S trashctl
```
### Install from source
For this, you need `git` and `rustup`
```bash
git clone https://github.com/0xMRTT/trashctl
cd trashctl
cargo b
./target/debug/trashctl
```
### Use github releases
Download binaries on the releases page (in the right pane)
## Usage/Examples
TODO
```shell
trashctl put foo
```
## Contributing
Contributions are always welcome!
See [`CONTRIBUTING.md`](./CONTRIBUTING.md) for ways to get started.
Please adhere to this project's [`CODE_OF_CONDUCT`](./CODE_OF_CONDUCT.md).
## Running Tests
To run tests, run the following command
```bash
cargo test
```
## Feedback
If you have any feedback, please open an discussion.
## Support
For support, open an discussion or join the matrix channel.
## FAQ
#### What can I do if y accidently `empty` my trash ?
Stop using your system. Boot into a live cd and use tools like `photo rec`
## Authors and contributors
- [@0xMRTT](https://www.github.com/0xMRTT)
- [Maybe you ?](#Contributing)
## Tech Stack
**cli:** `clap`, `clap_complete`
## Related
Here are some related projects
[`trash-cli`](https://github.com/andreafrancia/trash-cli)
## Acknowledgements
- [Clap](https://docs.rs/clap)
## License
[GPLv3](https://choosealicense.com/licenses/gpl-3.0/)