{"id":13592993,"url":"https://github.com/babarot/gomi","last_synced_at":"2025-04-06T22:09:02.959Z","repository":{"id":31328117,"uuid":"34890657","full_name":"babarot/gomi","owner":"babarot","description":"🗑️ Replacement for UNIX rm command!","archived":false,"fork":false,"pushed_at":"2023-05-14T04:05:16.000Z","size":6961,"stargazers_count":313,"open_issues_count":5,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T02:17:53.742Z","etag":null,"topics":["cli","go","gomi","trash","trashcan"],"latest_commit_sha":null,"homepage":"https://babarot.me/gomi","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/babarot.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}},"created_at":"2015-05-01T05:16:12.000Z","updated_at":"2024-04-11T00:18:11.000Z","dependencies_parsed_at":"2023-09-09T05:49:41.564Z","dependency_job_id":null,"html_url":"https://github.com/babarot/gomi","commit_stats":null,"previous_names":["babarot/gomi","b4b4r07/gomi"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babarot%2Fgomi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babarot%2Fgomi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babarot%2Fgomi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babarot%2Fgomi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/babarot","download_url":"https://codeload.github.com/babarot/gomi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557767,"owners_count":20958047,"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","go","gomi","trash","trashcan"],"created_at":"2024-08-01T16:01:15.472Z","updated_at":"2025-04-06T22:09:02.807Z","avatar_url":"https://github.com/babarot.png","language":"Go","funding_links":[],"categories":["Go","\u003ca name=\"rm\"\u003e\u003c/a\u003eFile deletion and trash bin (alternatives to rm)"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./docs/screenshot.png\" width=\"500\" alt=\"gomi\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://b4b4r07.mit-license.org\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/b4b4r07/gomi\" alt=\"License\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/b4b4r07/gomi/releases\"\u003e\n        \u003cimg\n            src=\"https://img.shields.io/github/v/release/b4b4r07/gomi\"\n            alt=\"GitHub Releases\"/\u003e\n    \u003c/a\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://b4b4r07.github.io/gomi/\"\u003e\n        \u003cimg\n            src=\"https://img.shields.io/website?down_color=lightgrey\u0026down_message=donw\u0026up_color=green\u0026up_message=up\u0026url=https%3A%2F%2Fb4b4r07.github.io%2Fgomi\"\n            alt=\"Website\"\n            /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/b4b4r07/gomi/actions/workflows/release.yaml\"\u003e\n        \u003cimg\n            src=\"https://github.com/b4b4r07/gomi/actions/workflows/release.yaml/badge.svg\"\n            alt=\"GitHub Releases\"\n            /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/b4b4r07/gomi/blob/master/go.mod\"\u003e\n        \u003cimg\n            src=\"https://img.shields.io/github/go-mod/go-version/b4b4r07/gomi\"\n            alt=\"Go version\"\n            /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n# 🗑️ Replacement for UNIX rm command!\n\n`gomi` (ごみ/go-mi means a trash in Japanese) is a simple trash tool that works on CLI, written in Go\n\nThe concept of the trashcan does not exist in Command-line interface ([CLI](http://en.wikipedia.org/wiki/Command-line_interface)). If you have deleted an important file by mistake with the `rm` command, it would be difficult to restore. Then, it's this `gomi`. Unlike `rm` command, it is possible to easily restore deleted files because `gomi` have the trashcan for the CLI.\n\n## Features\n\n- Like a `rm` command but not unlink (delete) in fact (just move to another place)\n- Easy to restore, super intuitive\n- Compatible with `rm` command, e.g. `-r`, `-f` options\n- Nice UI, awesome CLI UX\n- Easy to see what gomi does with setting `GOMI_LOG=[trace|debug|info|warn|error]`\n\n## Usage\n\n```console\n$ alias rm=gomi\n```\n```console\n$ rm -rf important-dir\n```\n```console\n$ rm --restore\nSearch: █\nWhich to restore?\n  ▸ important-dir\n    main_test.go\n    main.go\n    test-dir\n↓   validate_test.rego\n\nName:             important-dir\nPath:             /Users/b4b4r07/src/github.com/b4b4r07/important-dir\nDeletedAt:        5 days ago\nContent:            (directory)\n  -rw-r--r--  important-file-1\n  -rw-r--r--  important-file-2\n  drwxr-xr-x  important-subdir-1\n  drwxr-xr-x  important-subdir-2\n  ...\n```\n\n## Installation\n\nDownload the binary from [GitHub Releases][release] and drop it in your `$PATH`.\n\n- [Darwin / Mac][release]\n- [Linux][release]\n\n**For macOS / [Homebrew](https://brew.sh/) user**:\n\n```bash\nbrew install b4b4r07/tap/gomi\n```\n\n**Using [afx](https://github.com/b4b4r07/afx), package manager for CLI**:\n\n```yaml\ngithub:\n- name: b4b4r07/gomi\n  description: Trash can in CLI\n  owner: b4b4r07\n  repo: gomi\n  release:\n    name: gomi\n    tag: v1.1.5 ## NEED UPDATE!\n  command:\n    link:\n    - from: gomi\n      to: gomi\n    alias:\n      rm: gomi ## --\u003e alias rm=gomi\n```\n\n\n**AUR users**:\n\nhttps://aur.archlinux.org/packages/gomi/\n\n## Versus\n\n- [andreafrancia/trash-cli](https://github.com/andreafrancia/trash-cli)\n- [sindresorhus/trash](https://github.com/sindresorhus/trash)\n\n## License\n\n[MIT][license]\n\n[release]: https://github.com/b4b4r07/gomi/releases/latest\n[license]: https://b4b4r07.mit-license.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabarot%2Fgomi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbabarot%2Fgomi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabarot%2Fgomi/lists"}