Validate run restart option value. Default value is “none”, instead of “no”, this is more in line with compose values, and changes only the default so should not have too much impact on legacy usage.

This commit is contained in:
Guillaume Tardif 2020-08-04 10:22:07 +02:00
parent a2c2d6aa5d
commit f442eafe0b
16 changed files with 145 additions and 86 deletions

11
utils/stringutils.go Normal file
View file

@ -0,0 +1,11 @@
package utils
// StringContains check if an array contains a specific value
func StringContains(array []string, needle string) bool {
for _, val := range array {
if val == needle {
return true
}
}
return false
}