(plugins []configv3.Plugin)
| 48 | } |
| 49 | |
| 50 | func (cmd PluginsCommand) displayPluginChecksums(plugins []configv3.Plugin) error { |
| 51 | cmd.UI.DisplayText("Computing sha1 for installed plugins, this may take a while...") |
| 52 | table := [][]string{{"plugin", "version", "sha1"}} |
| 53 | for _, plugin := range plugins { |
| 54 | table = append(table, []string{plugin.Name, plugin.Version.String(), plugin.CalculateSHA1()}) |
| 55 | } |
| 56 | |
| 57 | cmd.UI.DisplayNewline() |
| 58 | cmd.UI.DisplayTableWithHeader("", table, ui.DefaultTableSpacePadding) |
| 59 | return nil |
| 60 | } |
| 61 | |
| 62 | func (cmd PluginsCommand) displayOutdatedPlugins() error { |
| 63 | repos := cmd.Config.PluginRepositories() |
no test coverage detected