1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-23 19:45:21 -04:00

plugins: enhance browser and CLI with new votes and labels

This commit is contained in:
bbedward
2026-06-23 14:48:43 -04:00
parent 28f40afccf
commit bed11feaa4
26 changed files with 2353 additions and 599 deletions
+11
View File
@@ -280,6 +280,8 @@ func browsePlugins() error {
return nil
}
feedback := plugins.FetchFeedback()
fmt.Printf("\nAvailable Plugins (%d):\n\n", len(pluginList))
for _, plugin := range pluginList {
installed, _ := manager.IsInstalled(plugin)
@@ -303,6 +305,15 @@ func browsePlugins() error {
if len(plugin.Dependencies) > 0 {
fmt.Printf(" Dependencies: %s\n", strings.Join(plugin.Dependencies, ", "))
}
if fb, ok := feedback[plugin.ID]; ok {
fmt.Printf(" Upvotes: %d\n", fb.Upvotes)
if len(fb.Status) > 0 {
fmt.Printf(" Status: %s\n", strings.Join(fb.Status, ", "))
}
if fb.IssueURL != "" {
fmt.Printf(" Discuss: %s\n", fb.IssueURL)
}
}
fmt.Println()
}