diff options
| author | Jeff Carr <[email protected]> | 2024-01-25 00:39:14 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-25 00:39:14 -0600 |
| commit | 41fe4a4659d50d70a835224405490588019d24ff (patch) | |
| tree | dd6677fb17d11a4233568fddf0d3a141434bba10 /structs.go | |
| parent | e24c2c2eb3feb5083a74a9b2cb396bcbcb0ac52d (diff) | |
new homev0.13.0
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 51 |
1 files changed, 27 insertions, 24 deletions
@@ -1,45 +1,48 @@ package shell -import "io" -import "os/exec" -import "bufio" -import "bytes" -import "github.com/svent/go-nbreader" +import ( + "bufio" + "bytes" + "io" + "os/exec" -var FileMap map[string]*File + "github.com/svent/go-nbreader" +) + +var FileMap map[string]*File var readBufferSize int type File struct { - Name string + Name string // BufferSize int // Buffer *bytes.Buffer // Fbytes []byte - TotalCount int - Empty bool - Dead bool + TotalCount int + Empty bool + Dead bool - Fio io.ReadCloser // := process.StdoutPipe() - Fbufio *bufio.Reader // := bufio.NewReader(pOUT) - Fnbreader *nbreader.NBReader // := nbreader.NewNBReader(readOUT, 1024) + Fio io.ReadCloser // := process.StdoutPipe() + Fbufio *bufio.Reader // := bufio.NewReader(pOUT) + Fnbreader *nbreader.NBReader // := nbreader.NewNBReader(readOUT, 1024) } type Shell struct { - Cmdline string - Process *exec.Cmd - Done bool - Quiet bool - Fail bool - Error error - Buffer *bytes.Buffer + Cmdline string + Process *exec.Cmd + Done bool + Quiet bool + Fail bool + Error error + Buffer *bytes.Buffer // which names are really better here? // for now I init them both to test out // how the code looks and feels - STDOUT *File - STDERR *File - Stdout *File - Stderr *File + STDOUT *File + STDERR *File + Stdout *File + Stderr *File } // default values for Shell |
