Add feature flag for command palette (#20011)

```release-note
NONE
```
This commit is contained in:
Agniva De Sarker 2022-04-18 14:43:47 +05:30 committed by GitHub
parent 98e7bb9ee9
commit c78c5ce3f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,8 @@ type FeatureFlags struct {
GraphQL bool GraphQL bool
InsightsEnabled bool InsightsEnabled bool
CommandPalette bool
} }
func (f *FeatureFlags) SetDefaults() { func (f *FeatureFlags) SetDefaults() {
@ -86,6 +88,7 @@ func (f *FeatureFlags) SetDefaults() {
f.UseCaseOnboarding = true f.UseCaseOnboarding = true
f.GraphQL = false f.GraphQL = false
f.InsightsEnabled = false f.InsightsEnabled = false
f.CommandPalette = false
} }
func (f *FeatureFlags) Plugins() map[string]string { func (f *FeatureFlags) Plugins() map[string]string {
rFFVal := reflect.ValueOf(f).Elem() rFFVal := reflect.ValueOf(f).Elem()