omni icon indicating copy to clipboard operation
omni copied to clipboard

feat(up)!: add `--upgrade` parameter

Open xaf opened this issue 1 year ago • 1 comments

omni up now takes a new --upgrade parameter which forces checking new available versions of tools matching any requested tool and version constraint, and installing them if it is not already the case.

This affects any tool which can be upgraded, e.g. this affects the homebrew operation, the github release operation, and any asdf-backed operation. For each of those, a new upgrade boolean parameter has been added and can be set to true to force the --upgrade behavior in all cases. When using latest as the version, this will only match with any version of the latest major.

A new up_command/upgrade option is also available in the global/repo configuration and can be set to true to force upgrading all tools even without the --upgrade parameter.

BREAKING CHANGE: This changes the default behavior which would now be the equivalent of setting up_command/upgrade to true. The default behavior was changed to speed up the operations.

Closes https://github.com/XaF/omni/issues/705

xaf avatar Oct 13 '24 04:10 xaf

Deploying omnicli with  Cloudflare Pages  Cloudflare Pages

Latest commit: fcf7bac
Status: ✅  Deploy successful!
Preview URL: https://66d2f901.omnicli.pages.dev
Branch Preview URL: https://xaf-omni-up-upgrade-support.omnicli.pages.dev

View logs