func RunSystemCommand(name string, arg ...string) (string, string, bool) {
	cmd := exec.Command(name, arg...)
	var stdout, stderr bytes.Buffer
	cmd.Stdout = &stdout
	cmd.Stderr = &stderr
	cmd.Run()
	outStr, errStr := string(stdout.Bytes()), string(stderr.Bytes())
	fmt.Printf("out: %s\nerr: %s", outStr, errStr)
	return outStr, errStr, true
}
RunSystemCommand permit to run a system command. It returns the stdout, the stderr
and a boolean that define if the command succeeded ... or not
package utils
import (
	"bytes"
	"fmt"
	"github.com/hashicorp/hcl/v2"
	"log"
	"os"
	"os/exec"
)
var LogFatal = log.Fatal
var LogFatalf = log.Fatalf
func NoDiagsOrFatal(diags hcl.Diagnostics) {
	if len(diags) != 0 {
		LogFatal(diags)
	}
}
func EnsureOrFatal(err error) {
	if err != nil {
		LogFatal(err)
	}
}
func OkOrFatal(ok bool, message string) {
	if !ok {
		LogFatal(message)
	}
}
func FileExists(path string) bool {
	if _, err := os.Stat(path); err != nil {
		if os.IsNotExist(err) {
			return false
		}
	}
	return true
}
func Contains(list []string, string string) bool {
	for _, elem := range list {
		if elem == string {
			return true
		}
	}
	return false
}