Files
kubevela/pkg/test/basic_test.go
2020-07-31 12:18:17 +08:00

17 lines
225 B
Go

package test
import (
"os"
"os/exec"
"path"
)
var (
rudrPath, _ = os.Getwd()
)
func Command(name string, arg ...string) *exec.Cmd {
commandName := path.Join(rudrPath, name)
return exec.Command(commandName, arg...)
}