4 "bytes"
5 "fmt"
6 "io"
7 "io/ioutil" 8 "math/rand"
9 "strconv"
10
2
3import (
4 "encoding/json"
5 "io/ioutil" 6
7 "github.com/convox/stdsdk"
8)
97 sopts.TerminalSizeQueue = &terminalSize{Height: *opts.Height, Width: *opts.Width}
98 }
99
100 err = e.Stream(sopts)101 if ee, ok := err.(exec.ExitError); ok {
102 return ee.ExitStatus(), nil
103 }
78 return errors.WithStack(err)
79 }
80
81 if err := exec.Stream(remotecommand.StreamOptions{Stdin: r}); err != nil {82 return errors.WithStack(err)
83 }
84
55 r, w := io.Pipe()
56
57 go func() {
58 exec.Stream(remotecommand.StreamOptions{Stdout: w})59 w.Close()
60 }()
61
Sometimes a function, variable, constant, field, or whole package becomes redundant or unnecessary but must be kept for compatibility with existing programs. These should not be used except for compatibility with legacy systems.