File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -357,11 +357,23 @@ func (a *App) Run(args []string) error {
357357 if err != nil {
358358 fmt .Fprintf (os .Stderr , "Warning: failed to uninstall removed components: %v\n " , err )
359359 } else if len (uninstallResults ) > 0 {
360- if a .Verbose {
361- fmt .Printf ("📦 Found %d removed components to uninstall\n " , len (uninstallResults ))
360+ // Only show "Uninstalled removed components" if actual uninstall commands were executed
361+ var actualUninstalls []component.InstallResult
362+ for _ , result := range uninstallResults {
363+ if result .InstallResult != nil {
364+ actualUninstalls = append (actualUninstalls , result )
365+ }
366+ }
367+
368+ if len (actualUninstalls ) > 0 {
369+ if a .Verbose {
370+ fmt .Printf ("📦 Found %d removed components with uninstall commands\n " , len (actualUninstalls ))
371+ }
372+ fmt .Println ("\n Uninstalled removed components:" )
373+ a .printResults ("Uninstall" , actualUninstalls )
374+ } else if a .Verbose {
375+ fmt .Printf ("✓ Cleaned up %d removed components (links only)\n " , len (uninstallResults ))
362376 }
363- fmt .Println ("\n Uninstalled removed components:" )
364- a .printResults ("Uninstall" , uninstallResults )
365377 } else if a .Verbose {
366378 fmt .Printf ("✓ No removed components found\n " )
367379 }
You can’t perform that action at this time.
0 commit comments