IsPluginEnabled gets whether the plugin is disabled or not.
(pluginPath string)
| 26 | |
| 27 | // IsPluginEnabled gets whether the plugin is disabled or not. |
| 28 | func 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. |
no outgoing calls