Gelio / go-global-update

A command to update globally installed go executables
MIT License
134 stars 4 forks source link

Add `--force` flag #23

Closed Gelio closed 1 month ago

Gelio commented 1 month ago

This PR introduces a new --force flag (alias: -f). It overrides the upgrade behavior to force reinstall binaries when they do not have a new version available.

The option can be used when a new version of go is released that fixes vulnerabilities and the user wants to reinstall all the binaries using the new version.

This option cannot be used alongside the --dry-run option, since their behavior is opposite.

Closes https://github.com/Gelio/go-global-update/issues/22