marcosnils / bin

Effortless binary manager
MIT License
640 stars 44 forks source link

Remeber the chosen option of mutiple matches on updating #187

Open MurzNN opened 5 months ago

MurzNN commented 5 months ago

When I'm installing a binary first time, it's okay to choose the right binary file.

But on updating it asks me again to choose the right binary like:

$ bin update
   • /home/alexey_korepov/.local/bin/gomplate v3.11.6 -> v3.11.7 (https://github.com/hairyhenderson/gomplate/releases/tag/v3.11.7)

Do you want to continue? [Y/n] 
   • Getting v3.11.7 release for hairyhenderson/gomplate

Multiple matches found, please select one:

 [1] gomplate_linux-amd64
 [2] gomplate_linux-amd64-slim
 Select an option: 

That's not so good :)

So, will be good to remember the chosen option during the installing process, and reuse it on updating without asking again.

marcosnils commented 5 months ago

Ok... This used to work. Probably a regression I've added. Will fix tomorrow.

sent from mobile

Em qua., 31 de jan. de 2024 06:23, Alexey Murz Korepov < @.***> escreveu:

When I'm installing a binary first time, it's okay to choose the right binary file.

But on updating it asks me again to choose the right binary like:

$ bin update • /home/alexey_korepov/.local/bin/gomplate v3.11.6 -> v3.11.7 (https://github.com/hairyhenderson/gomplate/releases/tag/v3.11.7)

Do you want to continue? [Y/n] • Getting v3.11.7 release for hairyhenderson/gomplate

Multiple matches found, please select one:

[1] gomplate_linux-amd64 [2] gomplate_linux-amd64-slim Select an option:

That's not so good :)

So, will be good to remember the chosen option during the installing process, and reuse it on updating without asking again.

— Reply to this email directly, view it on GitHub https://github.com/marcosnils/bin/issues/187, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMBLWQU46C6F6LAKRVMWVLYRIESFAVCNFSM6AAAAABCSWKXUKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDSNRUG4YDKNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

einarpersson commented 1 month ago

Was this fixed? I experienced this today when doing bin update -a.

Thanks!

marcosnils commented 1 month ago

hey! not yet fixed, I'll try to work on this today :pray: