{"id":16166023,"url":"https://github.com/hamza12700/drash","last_synced_at":"2025-03-18T23:30:46.419Z","repository":{"id":251157758,"uuid":"836565718","full_name":"Hamza12700/drash","owner":"Hamza12700","description":"✨ Better alternative to Linux rm command","archived":false,"fork":false,"pushed_at":"2025-03-18T14:38:39.000Z","size":172,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T15:44:07.195Z","etag":null,"topics":["alternative","cli","linux","rust"],"latest_commit_sha":null,"homepage":"","language":"C++","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/Hamza12700.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":"2024-08-01T05:52:49.000Z","updated_at":"2025-03-18T14:38:42.000Z","dependencies_parsed_at":"2024-08-01T07:47:47.454Z","dependency_job_id":"b92dbec2-5e63-4882-907c-31118146a2ce","html_url":"https://github.com/Hamza12700/drash","commit_stats":null,"previous_names":["hamza12700/drash"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hamza12700%2Fdrash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hamza12700%2Fdrash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hamza12700%2Fdrash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hamza12700%2Fdrash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hamza12700","download_url":"https://codeload.github.com/Hamza12700/drash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244325144,"owners_count":20435046,"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":["alternative","cli","linux","rust"],"created_at":"2024-10-10T02:53:07.859Z","updated_at":"2025-03-18T23:30:46.411Z","avatar_url":"https://github.com/Hamza12700.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drash\n\nA simple Command-Line Interface app, a better alternative to the Linux `rm`\ncommand. It keeps track of the original file-path of the removed file, and puts\nit into a directory, making it easy to recovery them later if you accidentally\ndeleted the wrong file.\n\nThis same functionality is used by KDE, GNOME, and XFCE [freedesktop-trashcan](https://www.freedesktop.org/wiki/Specifications/trash-spec/).\n\n## Installation:\n\nClone the repo into your local machine:\n```bash\ngit clone https://github.com/hamza12700/drash\n```\n\nThere's only two dependencies: `g++` and `make`:\n```bsah\ncd drash\n\n# 'opt' for release build\nmake opt\n```\n\n## Usage\n\n### Drash files\n\nPut file(s) into drashcan:\n```\ndrash foo\n```\n\nPass `--force/-f` flag to delete a file permanently:\n```\ndrash -f foo\n```\n\n### SubCommands\n\n#### List\n\nList all the removed files:\n```\ndrash list\n```\n\n#### Restore\n\nRestore files by searching for them:\n```\ndrash restore\n```\n\nRestore the last removed file:\n```\ndrash restore -\n```\n\nRestore a file matching the file name:\n```\ndrash restore \u003cFILE_NAME\u003e\n```\n\nPass `--overwrite/-o` flag to overwrite the existing file:\n```\ndrash restore \u003cFILE_NAME\u003e --overwrite\n```\n\n#### Empty\n\nEmpty the drashcan:\n```\ndrash empty\n```\n\nPass `--yes/-y` pass to not show the confirm prompt:\n```\ndrash empty -y\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamza12700%2Fdrash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamza12700%2Fdrash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamza12700%2Fdrash/lists"}