blob: 24c3e1169429482d193a3b52fe5576969a81d800 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package tui
import (
"os"
"os/exec"
)
// Execute runs given bin path via exec.Command call
func Execute(argv0 string, argv, envv []string) error {
cmd := exec.Command(argv0, argv...)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Stdin = os.Stdin
cmd.Env = envv
return cmd.Run()
}
|