add copy option

This commit is contained in:
2022-04-13 17:07:38 +02:00
parent 1751e2babb
commit 5418f56b1a
4 changed files with 74 additions and 15 deletions

View File

@@ -87,3 +87,12 @@ func CheckIfVolumeExists(volume string) bool {
_, _, err := ExecuteCommand(ExecuteOptions{Command: "docker"}, "volume", "inspect", volume)
return err == nil
}
func ArrayContains[T comparable](arr []T, needle T) bool {
for _, item := range arr {
if item == needle {
return true
}
}
return false
}