MCPcopy
hub / github.com/matryer/xbar / IsPluginEnabled

Function IsPluginEnabled

pkg/plugins/installed_plugins.go:28–30  ·  view source on GitHub ↗

IsPluginEnabled gets whether the plugin is disabled or not.

(pluginPath string)

Source from the content-addressed store, hash-verified

26
27// IsPluginEnabled gets whether the plugin is disabled or not.
28func IsPluginEnabled(pluginPath string) bool {
29 return !strings.HasSuffix(pluginPath, disabledPluginExtension)
30}
31
32// SetEnabled sets a plugin to enabled or disabled state, depending on the value
33// of the enabled parameter.

Callers 5

DirFunction · 0.85
SetEnabledFunction · 0.85
TestIsPluginEnabledFunction · 0.85
TestSetEnabledFunction · 0.85
findIntervalInFilenameFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestIsPluginEnabledFunction · 0.68
TestSetEnabledFunction · 0.68