buo / homebrew-cask-upgrade

A command line tool for upgrading every outdated app installed by Homebrew Cask
MIT License
2.4k stars 90 forks source link

Print URL to console #162

Closed deroke closed 4 years ago

deroke commented 4 years ago

Like in yarn

https://classic.yarnpkg.com/en/docs/cli/upgrade-interactive/

ondrejfuhrer commented 4 years ago

Hello @DerZersaeger , thank you for the contribution! πŸ‘ My question is, what would be the benefit of having it? Why would you like to see the URL in the output?

My concern is that with certain casks installed the output is already quite wide (yes, looking at you, Java!). So by adding more information the output will start wrapping into new lines making the output less readable.

How about adding that columns in verbose mode only? Would that make sense?

yurikoles commented 4 years ago

When I saw PR title my first impression was that this related to parallel downloads ticket.

@DerZersaeger @ondrejfuhrer

Could you please also implement an option that will generate a download URLs with corresponding target files locations?

I'm also volunteering here, so advice will be very appreciated.

yurikoles commented 4 years ago

Here is how it looks on my scaled terminal with large font.

proof
ondrejfuhrer commented 4 years ago

So it is actually trimming the result so those URLs won't actually work, am I right here?

Could you please also implement an option that will generate a download URLs with corresponding target files locations?

Well, those URLs are even longer (imagine when the cask is downloaded from S3), what would be the use case here? @yurikoles

yurikoles commented 4 years ago

Well, those URLs are even longer (imagine when the cask is downloaded from S3), what would be the use case here?

This output is not for humans, it's intended to be supplied to third party downloader.

ondrejfuhrer commented 4 years ago

@yurikoles So something like this?

> brew cu download-links
https://page1.com/application1.dmg
https://page2.com/application2.dmg
https://page3.com/application3.dmg

And then you would pipe that into another command to do your magic?

yurikoles commented 4 years ago

@ondrejfuhrer Yes, but I'm also thinking about file names, because brew generates path by adding some hash in front. The ~/Library/Caches/Homebrew/downloads/ may be assumed or gotten with brew --cache.

yurikoles commented 4 years ago

@DerZersaeger sorry for hijacking thread :(

@ondrejfuhrer let's continue in #160

deroke commented 4 years ago

@DerZersaeger sorry for hijacking thread :(

@ondrejfuhrer let's continue in #160

No problem

deroke commented 4 years ago

Hello @DerZersaeger , thank you for the contribution! πŸ‘ My question is, what would be the benefit of having it? Why would you like to see the URL in the output?

My concern is that with certain casks installed the output is already quite wide (yes, looking at you, Java!). So by adding more information the output will start wrapping into new lines making the output less readable.

How about adding that columns in verbose mode only? Would that make sense?

My intention is: When I upgrade any cask(s) I want to see what have changed.

E.g. when I run brew cu -a -f and see that vscodium or rectangle is outdated, I have to find the corresponding repository and check the committed changes.

I'm just too lazy to search all the time for these repos, so I started with this PR.

PS: I'm from πŸ‡©πŸ‡ͺ => πŸ‡¬πŸ‡§ should be improved

deroke commented 4 years ago

How about adding that columns in verbose mode only? Would that make sense? @ondrejfuhrer

See: https://github.com/buo/homebrew-cask-upgrade/pull/162/commits/91b2e6b69128e3537698e2f2f5d146802f804a69

Grüße nach Berlin πŸ‡©πŸ‡ͺ πŸ˜„ πŸ‘