haxelib icon indicating copy to clipboard operation
haxelib copied to clipboard

during update, show version being updated from

Open uvtc opened this issue 5 years ago • 3 comments

While doing a haxelib update, I'm prompted with:

Update ${package} to ${latest_version_available} [y/n/a] ?

but it does not tell me what the currently-installed version is. While updating, haxelib should tell the user both the current installed version number, as well as the latest version available for installation. That is, something like:

Update ${package} from ${curr_version} to ${latest_version_available} [y/n/a] ?

uvtc avatar Dec 26 '19 16:12 uvtc

Which version should be shown though, the set version or latest installed? Both could be argued for.

ibilon avatar Dec 26 '19 17:12 ibilon

Ah, I completely forgot that haxelib can maintain multiple installed versions. Thank you.

In that case, what I'd like as a user is for the haxelib update command to show me everything --- that is: the versions I have installed, the version I currently have set, and also the version I'm about to install and set to.

A terse output that resembles what haxelib list currently shows would be, for example:

Update my-cool-pkg (1.0.1 1.0.2 [1.0.3] 1.0.4) to 1.1.7 [y/n/a] ?

For me, that would remind me to remove older versions that I no longer need... and notify me when I'm jumping to a much newer version of a library which may break compat with a previous version (that I'm currently set to).

uvtc avatar Dec 26 '19 20:12 uvtc

s/notify me/implicitly suggest to me/

I don't mean it would do any sort of semver-based notification --- only that I could see what version I was upgrading from, and so could mentally compare version numbers to get a general idea of whether or not I can expect breaking changes.

uvtc avatar Dec 26 '19 22:12 uvtc