SUPERCILEX / fuc

Modern, performance focused unix commands
Apache License 2.0
340 stars 8 forks source link

Add -i / --interactive flags #24

Closed jtrv closed 9 months ago

jtrv commented 1 year ago

The -i / --interactive flags can be useful for preventing user errors. I use an abbreviation in fish so that rm and cp expand to rm -i and cp -i. So that I must first delete the flag in order to run a potentially dangerous operation.

SUPERCILEX commented 1 year ago

Seems pretty reasonable. I think the way it would be implemented in this project is by showing you everything that is about to be deleted in one go instead of asking you successive questions. Otherwise you lose out on cross directory parallel deletions.

SUPERCILEX commented 9 months ago

I'm not going to have the time to implement this (but I'm still open to somebody else sending a PR), so closing.

I'd recommend first using echo to check the files that will be operated on. Filed this for nushell: https://github.com/nushell/nushell/issues/11139