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

Option to delete original? #71

Open
Nantris opened this issue Aug 9, 2022 · 3 comments
Open

Option to delete original? #71

Nantris opened this issue Aug 9, 2022 · 3 comments
Labels

Comments

@Nantris
Copy link

Nantris commented Aug 9, 2022

I know you can use {dir} to overwrite the original, but that can't help if the operation is a conversion from, for example, png to jpg.

Thanks for sharing this great project!

@vseventer
Copy link
Owner

I don't think the CLI should be removing files - you can always write a script that takes the input file and deletes it after processing.

@Nantris
Copy link
Author

Nantris commented Aug 9, 2022

Fair enough. I'd hoped not to have to do that, but it's an understandable position.

One substantial downside though is that it makes testing commands much more onerous because it means cleaning up files in {dir} or re-creating {dir} to its proper state before testing the command again.

Thanks for all your help and feel free to close this issue unless that downside sways you at all.

@mathieu-aubin
Copy link

do your testing in a git managed folder you quickly setup and then just do a hard reset on the repository to clean up? no? It's quick. rm -rf $tmpDir is also quick.

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

No branches or pull requests

3 participants