mirror of
https://github.com/go-task/task.git
synced 2025-04-07 07:09:55 +02:00
15 lines
264 B
Go
15 lines
264 B
Go
// +build !windows
|
|
|
|
package execext
|
|
|
|
import (
|
|
"context"
|
|
"os/exec"
|
|
)
|
|
|
|
// NewCommand returns a new command that runs on "sh" is available or on "cmd"
|
|
// otherwise on Windows
|
|
func NewCommand(ctx context.Context, c string) *exec.Cmd {
|
|
return newShCommand(ctx, c)
|
|
}
|