mirror of
https://github.com/go-task/task.git
synced 2025-03-19 21:17:46 +02:00
14 lines
227 B
Go
14 lines
227 B
Go
|
// +build !windows
|
||
|
|
||
|
package execext
|
||
|
|
||
|
import (
|
||
|
"os/exec"
|
||
|
)
|
||
|
|
||
|
// NewCommand returns a new command that runs on "sh" is available or on "cmd"
|
||
|
// otherwise on Windows
|
||
|
func NewCommand(c string) *exec.Cmd {
|
||
|
return newShCommand(c)
|
||
|
}
|