jorgebucaran / fisher

A plugin manager for Fish
https://git.io/fisher
MIT License
7.55k stars 257 forks source link

Quieter update #641

Closed tuxiqae closed 3 years ago

tuxiqae commented 3 years ago

Would it be possible to make fisher update less verbose?

Currently it prints info regarding each and every plugin it tries to update, and says it got updated even if nothing changed. I think that it would be better for it to print by default only the plugins that were actually updated, and in the end conclude it all with a list of updated plugins.

For example, that's my current output: image

Thanks for this amazing plugin manager!

jorgebucaran commented 3 years ago

The challenge is to detect if a plugin requires an update or not. It's usually so fast to download a plugin that we just don't care. It would be quite impressive to skip over plugins that don't need to be updated, but we'd probably want to add a --force flag to update it anyway since updating has the effect of erasing the plugin from the environment and re-enabling it, followed by an update event, which I find valuable during plugin construction.

If you want a quieter install, update, and remove, we could look into adding a --quiet flag. You can pipe the output to /dev/null as well.

tuxiqae commented 3 years ago

@jorgebucaran, so why not actually add a --quiet flag which will only print X plugins were successfully updated?

To me that sounds the best out of all of those.

jorgebucaran commented 3 years ago

@tuxiqae Could work! I don't particularly need this, so feel free to send a PR and we can take it from there.

tuxiqae commented 3 years ago

Unfortunately I don't have much spare time these days, not sure when I'd be able to take care of it.