executable is now os

This commit is contained in:
Asim Aslam 2020-08-13 07:57:57 +01:00
parent 1fa3ac5599
commit f0142febcf

View File

@ -10,12 +10,12 @@ import (
"github.com/micro/go-micro/v3/runtime/local/process"
)
func (p *Process) Exec(exe *process.Executable) error {
func (p *Process) Exec(exe *process.Exec) error {
cmd := exec.Command(exe.Package.Path)
return cmd.Run()
}
func (p *Process) Fork(exe *process.Executable) (*process.PID, error) {
func (p *Process) Fork(exe *process.Exec) (*process.PID, error) {
// create command
cmd := exec.Command(exe.Package.Path, exe.Args...)
// set env vars