MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / pluginFilter

Function pluginFilter

cli/cmd/init.go:131–135  ·  view source on GitHub ↗
(pluginPath string, kind cqapi.PluginKind)

Source from the content-addressed store, hash-verified

129}
130
131func pluginFilter(pluginPath string, kind cqapi.PluginKind) func(plugin cqapi.ListPlugin) bool {
132 return func(plugin cqapi.ListPlugin) bool {
133 return plugin.TeamName+"/"+plugin.Name == pluginPath && plugin.Kind == kind && plugin.LatestVersion != nil
134 }
135}
136
137func pluginName(plugin cqapi.ListPlugin, _ int) string {
138 return plugin.Name

Callers 1

initCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected