Documentation
¶
Index ¶
- type Cmd
- func (c *Cmd) ConvertUtf8() *Cmd
- func (c *Cmd) Done()
- func (c *Cmd) GetCustomErrChan() chan []byte
- func (c *Cmd) GetCustomOutChan() chan []byte
- func (c *Cmd) OutPut() *Cmd
- func (c *Cmd) SetTimeout(timeout time.Duration) *Cmd
- func (c *Cmd) Start() ([]byte, error)
- func (c *Cmd) ThrowPanic() *Cmd
- func (c *Cmd) WaitCustomChan() *Cmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
Command string //命令行
Cmd *exec.Cmd
CtxCancel context.CancelFunc
Ctx context.Context
OutPutBuf *bufio.Reader //命令输出流
ErrPutBuf *bufio.Reader //错误输出流
// contains filtered or unexported fields
}
func (*Cmd) ConvertUtf8 ¶
func (*Cmd) GetCustomErrChan ¶
func (*Cmd) GetCustomOutChan ¶
func (*Cmd) SetTimeout ¶
SetTimeout cxt timeout
func (*Cmd) WaitCustomChan ¶
Click to show internal directories.
Click to hide internal directories.