haxelib
haxelib copied to clipboard
during update, show version being updated from
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] ?
Which version should be shown though, the set version or latest installed? Both could be argued for.
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).
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.