Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 23 days 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 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-30T22:45:25.000Z (about 2 years ago)
- Last Synced: 2024-01-28T17:42:03.255Z (9 months 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
[![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](https://opensource.org/licenses/)
[![Continuous integration](https://github.com/0xMRTT/trashctl/actions/workflows/matrix.yml/badge.svg)](https://github.com/0xMRTT/trashctl/actions/workflows/matrix.yml)
[![Deploy](https://github.com/0xMRTT/trashctl/actions/workflows/deploy.yml/badge.svg)](https://github.com/0xMRTT/trashctl/actions/workflows/deploy.yml)
[![Rust](https://github.com/0xMRTT/trashctl/actions/workflows/rust.yml/badge.svg)](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
![App Screenshot](https://via.placeholder.com/468x300?text=App+Screenshot+Here)
## 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 releasesDownload binaries on the releases page (in the right pane)
## Usage/ExamplesTODO
```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/)