Documentation
¶
Index ¶
- type Command
- func (c Command) Run(ctx context.Context) (CommandResult, error)
- func (c Command) WithApp(app string, args ...string) Command
- func (c Command) WithCwd(cwd string) Command
- func (c Command) WithExtraArgs(args ...string) Command
- func (c Command) WithLogging(args ...bool) Command
- func (c Command) WithStdErrLogging() Command
- func (c Command) WithStdLogging() Command
- func (c Command) WithStdOutLogging() Command
- func (c Command) WithTimeout(timeout time.Duration) Command
- func (c Command) WithTimeoutRetries(n int) Command
- type CommandResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Cwd string App string Args []string // You can have either a custom context or a timeout, not both Timeout time.Duration TimeoutRetries int LogStdOut bool LogStdErr bool // debug functionality LogInput bool }
func NewCommand ¶
func NewCommandA ¶
func (Command) WithExtraArgs ¶
func (Command) WithLogging ¶
func (Command) WithStdErrLogging ¶
func (Command) WithStdLogging ¶
func (Command) WithStdOutLogging ¶
func (Command) WithTimeoutRetries ¶
Click to show internal directories.
Click to hide internal directories.