Skip to content

Commit

Permalink
feat: remind user to update twice when update old format plugins
Browse files Browse the repository at this point in the history
fix #231
  • Loading branch information
aooohan committed Apr 29, 2024
1 parent 9a0079f commit 01fa25d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,11 @@ func (m *Manager) Update(pluginName string) error {

pterm.Printf("Update %s plugin successfully! version: %s \n", pterm.Green(pluginName), pterm.Blue(tempPlugin.Version))

// It's probably an old format plugin, just a reminder.
if tempPlugin.UpdateUrl != "" && tempPlugin.ManifestUrl != "" {
pterm.Printf("%s\n", pterm.LightYellow("This plugin maybe an old format plugin, please update this plugin again!"))
}

return nil
}

Expand Down

0 comments on commit 01fa25d

Please sign in to comment.