Documentation
¶
Index ¶
- Constants
- type Command
- func (c Command) ExitCode() int
- func (c Command) Output() string
- func (c *Command) Run() (int, string, error)
- func (c *Command) RunWithOutput() (int, string, error)
- func (c *Command) SetTimeout(timeout time.Duration)
- func (c *Command) SetTimeoutWithSecond(n int64)
- func (c Command) Status() string
- func (c Command) String() string
Constants ¶
View Source
const ( ErrCode int = -1 ErrCodeProcess = -2 )
View Source
const ( StatNotStarted = "not started" StatRunning = "in progress" StatCompleted = "completed" StatTimeout = "completed with timeout" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (*Command) SetTimeout ¶
func (*Command) SetTimeoutWithSecond ¶
Click to show internal directories.
Click to hide internal directories.