Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cmd/plugin_dynamic.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,15 @@ var pluginMarketplaceListCmd = &cobra.Command{
Short: "List plugins available from marketplace sources",
RunE: func(cmd *cobra.Command, _ []string) error {
mc := plugin.NewMarketplaceClient()
prog := NewCLIProgress("Marketplace", []string{"Fetching marketplace indexes"})
prog.StartStep(0)
entries, err := mc.FetchAll()
if err != nil {
prog.Abort()
return fmt.Errorf("fetch marketplace: %w (indexes may be unpublished; add a source with graycode plugin marketplace add)", err)
}
prog.CompleteStep(0)
prog.Done()
if len(entries) == 0 {
cmd.Println(auditTint("No marketplace plugins found.", textMuted))
cmd.Println(auditTint("Add a source: graycode plugin marketplace add <name> <index-url>", textMuted))
Expand Down
Loading