syncFeatures: support syncing internal kill switches
Bug: twpowertools:162
Change-Id: I940c30a56a0be7119041b7347f103b5f1dd5827c
diff --git a/cmd/syncfeatures/syncfeatures.go b/cmd/syncfeatures/syncfeatures.go
index a4f97d8..d10d2d9 100644
--- a/cmd/syncfeatures/syncfeatures.go
+++ b/cmd/syncfeatures/syncfeatures.go
@@ -38,6 +38,9 @@
case "experiment":
return pb.Feature_TYPE_EXPERIMENT
+ case "internalKillSwitch":
+ return pb.Feature_TYPE_INTERNAL_KILL_SWITCH
+
case "deprecated":
return pb.Feature_TYPE_DEPRECATED
@@ -78,7 +81,7 @@
features := make([]*pb.Feature, 0)
for codename, jsonFeature := range jsonFeatures {
- if jsonFeature.Context == "internal" {
+ if jsonFeature.Context == "internal" && jsonFeature.KillSwitchType != "internalKillSwitch" {
continue
}