https://github.com/nao1215/trash
trash - [WIP]freedesktop-compliant "Trash can" library and CLI commands written in golang
https://github.com/nao1215/trash
command-line freedesktop golang golang-library trash trashcan
Last synced: 10 months ago
JSON representation
trash - [WIP]freedesktop-compliant "Trash can" library and CLI commands written in golang
- Host: GitHub
- URL: https://github.com/nao1215/trash
- Owner: nao1215
- License: mit
- Created: 2023-02-17T23:26:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-18T13:29:38.000Z (about 3 years ago)
- Last Synced: 2024-12-15T21:27:06.033Z (over 1 year ago)
- Topics: command-line, freedesktop, golang, golang-library, trash, trashcan
- Language: Go
- Homepage:
- Size: 2.27 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# trash - freedesktop-compliant "Trash can"
The trash project provides libraries and CLI commands that follow the [freedesktop.org trash specification](https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html) in golang.
# "trash" cli tool
## How to install
### Use "go install"
If you does not have the golang development environment installed on your system, please install golang from the [golang official website](https://go.dev/doc/install).
```
$ go install github.com/nao1215/trash@latest
```
### Install from Package or Binary
[The release page](https://github.com/nao1215/trash/releases) contains packages in .deb, .rpm, and .apk formats.
## List of features
## How to use
### move file/directory to trash can
```
$ trash move PATH/TO/FILE
```
### list file/directory in trash can
```
$ trash list
```
### restore file/directory in trash can
```
$ trash restore FILE_NAME
```
### erase file/directory in trash can
```
$ trash erase FILE_NAME
```
# "trash" Library
## How to use
TODO:
# Contributing
First off, thanks for taking the time to contribute! ❤️ See [CONTRIBUTING.md](./CONTRIBUTING.md) for more information.
Contributions are not only related to development. For example, GitHub Star motivates me to develop!
# Contact
If you would like to send comments such as "find a bug" or "request for additional features" to the developer, please use one of the following contacts.
- [GitHub Issue](https://github.com/nao1215/trash/issues)
# LICENSE
The trash project is licensed under the terms of [MIT License](./LICENSE).