Documentation
¶
Index ¶
- func BackgroundCommand(name string, args ...string) *exec.Cmd
- func BackgroundCommandContext(ctx context.Context, name string, args ...string) *exec.Cmd
- func Capture(command *exec.Cmd, options CaptureOptions) (string, error)
- func Run(ctx context.Context, name string, args ...string) (string, error)
- func RunWithOptions(ctx context.Context, options Options, name string, args ...string) (string, error)
- type BoundedOutput
- type CaptureOptions
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackgroundCommand ¶
Create a command configured for background execution
func BackgroundCommandContext ¶
Create a cancellable command configured for background execution
func Capture ¶
func Capture(command *exec.Cmd, options CaptureOptions) (string, error)
Capture bounds combined stdout/stderr without creating a shell or starting a timer
Types ¶
type BoundedOutput ¶
func (*BoundedOutput) Overflow ¶
func (b *BoundedOutput) Overflow() bool
Report whether captured output exceeded its limit
type CaptureOptions ¶
CaptureOptions retains caller-owned command configuration and cancellation