[App argentum/ag] Check for which packages to update before asking for confirmation
#11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When trying to update every package installed on the system that needs updating, this is done through the
ag updatecommand, which currently does this:What would be nice is to check what packages are up to date earlier in the process, before step 2.
This makes it possible to make the confirmation message only show up the packages that aren't up to date (e.g. if halyde needs a system update, only the packages
halydewill show up, instead of all the packages installed in the system)Another thing this can make possible is to stop completely afterwards when it finds out that all packages are up to date, which stops it from logging unnecessarily.
If this idea was applied, the output would be like this (if all packages are up-to-date):
Or this (if one or more packages need updating):
Added in
235db61a01.