chore: explain dry run

main
sudo pacman -Syu 2022-08-24 22:03:09 +07:00
parent 43d228a258
commit a258b7bfef
No known key found for this signature in database
GPG Key ID: D6CB5C6C567C47B0
1 changed files with 2 additions and 0 deletions

View File

@ -197,6 +197,8 @@ func (a *action) runUpgradeModule(
// Upgrade module // Upgrade module
if a.flags.dryRun { if a.flags.dryRun {
// Only print which module will be upgrade
// Don't do anything
color.PrintAppOK(name, fmt.Sprintf("Will upgrade [%s] version [%s] to [%s]", module.Path, module.Version, module.Update.Version)) color.PrintAppOK(name, fmt.Sprintf("Will upgrade [%s] version [%s] to [%s]", module.Path, module.Version, module.Update.Version))
return successUpgradedModules, nil return successUpgradedModules, nil
} }