trash-cli
trash-cli copied to clipboard
Implement a Unified CLI
Is your feature request related to a problem? Please describe. As mentioned in your README, the trash CLI is exposed to the user through the commands below:
trash-put trash files and directories.
trash-empty empty the trashcan(s).
trash-list list trashed files.
trash-restore restore a trashed file.
trash-rm remove individual files from the trashcan.
I very much like this project and thought from an ease of use perspective it would be more convenient to unify those five commands into a single command.
Describe the solution you'd like
Ideally I'd like to reorganize the CLI into a single trash command such that
trash-put => trash [put|p] # rest of CLI arguments go here
trash-empty => trash [empty|e] # rest of CLI arguments go here
trash-list => trash ls
trash-restore => trash [rs|restore] # rest of CLI arguments go here
trash-rm => trash rm # rest of CLI arguments go here
Describe alternatives you've considered I'm currently looking at implementing aliases in my personal .zshrc along the lines of trp, tre, etc that alias each of the exposed trash CLI commands. I also use Oh-My-ZSH, so I may write a plugin for personal use and
Additional context I am a programmer by occupation and have a decent amount of experience with the python programming language. If you don't mind I'd be happy to fork this repo and PR my proposal as a proof of concept for you and other contributors maintaining this project to review.