feat: add support for global-only environment properties

If a property is only specified globally, it would otherwise be caught later in the check for valid properties.
This commit is contained in:
Jose Diaz-Gonzalez
2024-01-18 19:16:13 -05:00
parent 3f96a250a2
commit 580d2dc3ee

View File

@@ -25,6 +25,12 @@ func CommandPropertySet(pluginName, appName, property, value string, properties
LogFail("No property specified")
}
for k := range globalProperties {
if _, ok := properties[k]; !ok {
properties[k] = ""
}
}
if _, ok := properties[property]; !ok {
properties := reflect.ValueOf(properties).MapKeys()
validPropertyList := make([]string, len(properties))