{"id":18447655,"url":"https://github.com/koki-develop/gotrash","last_synced_at":"2025-04-08T00:32:19.618Z","repository":{"id":146174398,"uuid":"617436473","full_name":"koki-develop/gotrash","owner":"koki-develop","description":"🗑️ rm alternative written in Go.","archived":false,"fork":false,"pushed_at":"2025-03-12T22:17:46.000Z","size":2871,"stargazers_count":11,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T03:41:32.543Z","etag":null,"topics":["cli","golang","terminal"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koki-develop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-22T11:48:26.000Z","updated_at":"2024-03-29T11:07:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c9092c3-dad1-4a7e-9a68-3bb735f74eb3","html_url":"https://github.com/koki-develop/gotrash","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fgotrash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fgotrash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fgotrash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fgotrash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koki-develop","download_url":"https://codeload.github.com/koki-develop/gotrash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755449,"owners_count":20990618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","golang","terminal"],"created_at":"2024-11-06T07:14:01.920Z","updated_at":"2025-04-08T00:32:14.608Z","avatar_url":"https://github.com/koki-develop.png","language":"Go","readme":"# gotrash\n\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/koki-develop/gotrash)](https://github.com/koki-develop/gotrash/releases/latest)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/koki-develop/gotrash/ci.yml?logo=github)](https://github.com/koki-develop/gotrash/actions/workflows/ci.yml)\n[![Maintainability](https://img.shields.io/codeclimate/maintainability/koki-develop/gotrash?style=flat\u0026logo=codeclimate)](https://codeclimate.com/github/koki-develop/gotrash/maintainability)\n[![Go Report Card](https://goreportcard.com/badge/github.com/koki-develop/gotrash)](https://goreportcard.com/report/github.com/koki-develop/gotrash)\n[![LICENSE](https://img.shields.io/github/license/koki-develop/gotrash)](./LICENSE)\n\nrm alternative written in Go.\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [`put`](#gotrash-put)\n  - [`list`](#gotrash-list)\n  - [`restore`](#gotrash-restore)\n  - [`clear`](#gotrash-clear)\n- [LICENSE](#license)\n\n## Installation\n\n### Homebrew\n\n```console\n$ brew install koki-develop/tap/gotrash\n```\n\n### `go install`\n\n```console\n$ go install github.com/koki-develop/gotrash@latest\n```\n\n### Releases\n\nDownload the binary from the [releases page](https://github.com/koki-develop/gotrash/releases/latest).\n\n## Usage\n\n```console\n$ gotrash --help\nrm alternative written in Go.\n\nUsage:\n  gotrash [command]\n\nAvailable Commands:\n  clear       Clear all trashed files or directories\n  completion  Generate the autocompletion script for the specified shell\n  help        Help about any command\n  list        List trashed flies or directories\n  put         Trash files or directories\n  restore     Restore trashed files or directories\n\nFlags:\n  -h, --help      help for gotrash\n  -v, --version   version for gotrash\n\nUse \"gotrash [command] --help\" for more information about a command.\n```\n\n### `gotrash put`\n\n`gotrash put` trashes files or directories.\n\n![](./docs/put.gif)\n\nFiles and directories trashed by `gotrash put` are not deleted, but placed in the trash can ( `$GOTRASH_ROOT/can` ) .  \nThe `$GOTRASH_ROOT` environment variable ( default: `$HOME/.gotrash` ) can be rewritten to customize the trash can path.\n\n### `gotrash list`\n\nAlias: `gotrash ls`\n\nFiles and directories in the trash can can be viewed with `gotrash list`.\n\n```console\n$ gotrash list\n```\n\n![](./docs/list.gif)\n\n### `gotrash restore`\n\nAlias: `gotrash rs`\n\nTrashed files and directories can be restored with `gotrash restore`.  \nCheck the index with `gotrash list` and pass it.\n\n![](./docs/restore.gif)\n\nIf you execute without specifying indexes, fuzzy finder will start.  \nYou can use the tab key to select multiple files or directories to restore.\n\n![](./docs/restore-ui.gif)\n\n### `gotrash clear`\n\n`gotrash clear` deletes all trashed files and directories.\n\n![](./docs/clear.gif)\n\n## LICENSE\n\n[MIT](./LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoki-develop%2Fgotrash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoki-develop%2Fgotrash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoki-develop%2Fgotrash/lists"}