github.com/LanceLRQ/deer-common@v0.0.9-0.20210319081233-e8222ac018a8/structs/binary.go (about) 1 package structs 2 3 import ( 4 "context" 5 "io" 6 ) 7 8 type ShellResult struct { 9 Success bool 10 Stdout string 11 Stderr string 12 ExitCode int 13 Signal int 14 ErrorMessage string 15 } 16 17 type ShellWriters struct { 18 Input io.Reader 19 Output io.Writer 20 Error io.Writer 21 } 22 23 type ShellOptions struct { 24 Context context.Context 25 Name string 26 Args []string 27 StdWriter *ShellWriters 28 OnStart func(io.Writer) error 29 }