// New creates a Cmd with a real exec.Cmd Run function.
New creates a Cmd with a real exec.Cmd Run function.
// New creates a Cmd with a real exec . Cmd Run function .
func New(c string, args ...string) *Cmd {
	cmd := &Cmd{
		Cmd: exec.Command(c, args...),
	}
	cmd.Run = func() error {
		return cmd.Cmd.Run()
	}
	return cmd
}
func New ( c string , args ... string ) * Cmd { cmd := & Cmd { Cmd : exec . Command ( c , args ... ) , } cmd . Run = func ( ) error { return cmd . Cmd . Run ( ) } return cmd }
New creates a Cmd with a real exec.Cmd Run function.
New creates a Cmd with a real exec . Cmd Run function .