You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/e2e/cli/cli.go

22 lines
330 B

package cli
import (
"os/exec"
)
const cmdPath = "/tmp/watchtower"
func Run(args ...string) ([]byte, error) {
return exec.Command(cmdPath, args...).Output()
}
func Start(args ...string) (*exec.Cmd, error) {
cmd := exec.Command(cmdPath, args...)
err := cmd.Start()
if err != nil {
return cmd, err
}
return cmd, nil
}