func (y YValve) Send() (_ io.WriteCloser, err error) { r := y.X.Call("Send") if err = errors.Unpack(r[1]); err != nil { return nil, err } return xio.NewYWriteCloser(r[0]), nil }
func (y YCmd) Start() (stdin io.WriteCloser, stdout, stderr io.ReadCloser, err error) { r := y.Call("Start") err = errors.Unpack(r[3]) if err != nil { return nil, nil, nil, err } return xyio.NewYWriteCloser(r[0]), xyio.NewYReadCloser(r[1]), xyio.NewYReadCloser(r[2]), nil }
func (y YShell) Tail(name string, arg ...string) (stdin io.WriteCloser, stdout, stderr io.ReadCloser, err error) { ig := make([]interface{}, 0, len(arg)) for _, a := range arg { ig = append(ig, a) } r := y.Call("Tail", ig...) err = errors.Unpack(r[3]) if err != nil { return nil, nil, nil, err } return xyio.NewYWriteCloser(r[0]), xyio.NewYReadCloser(r[1]), xyio.NewYReadCloser(r[2]), nil }
func (y YContainer) Stdin() io.WriteCloser { return xio.NewYWriteCloser(y.X.Call("Stdin")[0]) }
func (y YProc) Stdin() io.WriteCloser { return xio.NewYWriteCloser(y.X.Call("Stdin")[0]) }