github.com/loafoe/cli@v7.1.0+incompatible/integration/helpers/os.go (about)

     1  package helpers
     2  
     3  import (
     4  	"runtime"
     5  
     6  	. "github.com/onsi/ginkgo"
     7  )
     8  
     9  func IsWindows() bool {
    10  	return runtime.GOOS == "windows"
    11  }
    12  
    13  func SkipIfWindows() {
    14  
    15  	if IsWindows() {
    16  		Skip("the OS is Windows")
    17  	}
    18  
    19  }