mirror of
https://github.com/cubixle/tuugen.git
synced 2026-04-25 00:24:46 +01:00
17 lines
232 B
Go
17 lines
232 B
Go
package tuugen
|
|
|
|
import "os/exec"
|
|
|
|
func runCommand(cmd string, args []string) error {
|
|
c := exec.Command(cmd, args...)
|
|
err := c.Start()
|
|
if err != nil {
|
|
return nil
|
|
}
|
|
err = c.Wait()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|