Plugins: Only load transform plug-ins if expressions feature on (#24110)

* PluginManager: Only load transform plugins if expressions feature on

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
This commit is contained in:
Arve Knudsen
2020-05-04 17:39:20 +02:00
committed by GitHub
co-authored by Marcus Efraimsson
parent 89db44e6f3
commit 2fc2a7c3f5
4 changed files with 78 additions and 8 deletions
+5
View File
@@ -289,6 +289,11 @@ type Cfg struct {
FeatureToggles map[string]bool
}
// IsExpressionsEnabled returns whether the expressions feature is enabled.
func (c Cfg) IsExpressionsEnabled() bool {
return c.FeatureToggles["expressions"]
}
type CommandLineArgs struct {
Config string
HomePath string