-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add upgrade command to pixi #614
Conversation
Perhaps we could move even more into an fn globally_install_package or whatever the best name would be and the call that function in both the install and upgrade commands. Then we can keep the info for the user as you have done it now. Including the checking if the package is available (which I would indeed make an error). |
@ruben-arts I have made some changes and also added |
Easiest way to add an upgrade command is to reuse the install logic. This commit extracts out parts of install::execute flow into its own function. So upgrade is basically just calling install but can format the final message differently
351eaac
to
7e1d9b0
Compare
7e1d9b0
to
ed442ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We approve of the code! Nice work. Could you add documentation to the CLI document?
@ruben-arts Added to the reference docs. Please take a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, will wait on CI
Fixes: #613
Description
Introduce a new 'upgrade' and
upgrade-all
subcommand to 'pixi'.Users can specify the target package with the 'package' option and choose upgrade channels using the 'channel' option.
Example