Documentation ¶
Index ¶
- Constants
- Variables
- func BinVersion() (string, error)
- func SetOutput(output io.Writer)
- func SetPrefix(prefix string)
- type Command
- func (c *Command) AddArgs(args ...string) *Command
- func (c *Command) AddEnvs(envs ...string) *Command
- func (c *Command) Run() ([]byte, error)
- func (c *Command) RunInDir(dir string) ([]byte, error)
- func (c *Command) RunInDirPipeline(stdout, stderr io.Writer, dir string) error
- func (c *Command) RunInDirPipelineWithTimeout(timeout time.Duration, stdout, stderr io.Writer, dir string) (err error)
- func (c *Command) RunInDirWithTimeout(timeout time.Duration, dir string) ([]byte, error)
- func (c *Command) RunWithTimeout(timeout time.Duration) ([]byte, error)
- func (c *Command) String() string
Constants ¶
View Source
const DefaultTimeout = time.Minute
Variables ¶
View Source
var ErrExecTimeout = errors.New("execution was timed out")
Functions ¶
func BinVersion ¶
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func (*Command) RunInDirPipeline ¶
func (*Command) RunInDirPipelineWithTimeout ¶
func (*Command) RunInDirWithTimeout ¶
func (*Command) RunWithTimeout ¶
Click to show internal directories.
Click to hide internal directories.