Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a Unified CLI #290

Open
curtiscali opened this issue Feb 24, 2023 · 1 comment
Open

Implement a Unified CLI #290

curtiscali opened this issue Feb 24, 2023 · 1 comment

Comments

@curtiscali
Copy link

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.

@andreafrancia
Copy link
Owner

Right now I don't think I'm going to change the interface of trash-cli any soon. You can surely fork the project, and you can also use the Discussions area of trash-cli for finding other people interested in your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants