MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / EnabledFromConfig

Function EnabledFromConfig

internal/ui/plugins/loader.go:30–37  ·  view source on GitHub ↗

EnabledFromConfig resolves the effective plugin set for the provided configuration.

(cfg *config.Config)

Source from the content-addressed store, hash-verified

28
29// EnabledFromConfig resolves the effective plugin set for the provided configuration.
30func EnabledFromConfig(cfg *config.Config) ([]components.Plugin, []string) {
31 desired := cfg.Plugins.Enabled
32 if desired == nil {
33 desired = defaultEnabled
34 }
35
36 return resolve(desired)
37}
38
39func resolve(ids []string) ([]components.Plugin, []string) {
40 seen := make(map[string]struct{})

Callers 4

RunAppFunction · 0.92

Calls 1

resolveFunction · 0.85