Documentation
¶
Index ¶
- type Mpipe
- func Command(name string, args ...string) *Mpipe
- func CommandContext(ctx context.Context, name string, args ...string) *Mpipe
- func CommandContextWithOptions(ctx context.Context, opts []MpipeOptions, name string, args ...string) *Mpipe
- func CommandWithOptions(opts []MpipeOptions, name string, args ...string) *Mpipe
- type MpipeOptions
- type Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mpipe ¶
type Mpipe struct {
// contains filtered or unexported fields
}
func CommandWithOptions ¶
func CommandWithOptions(opts []MpipeOptions, name string, args ...string) *Mpipe
type MpipeOptions ¶
type MpipeOptions func(*Mpipe)
func WithStderrTransformer ¶
func WithStderrTransformer(t Transformer) MpipeOptions
func WithStdinTransformer ¶
func WithStdinTransformer(t Transformer) MpipeOptions
func WithStdoutTransformer ¶
func WithStdoutTransformer(t Transformer) MpipeOptions
type Transformer ¶
var NoTransform Transformer = func(s string) string {
return s
}
Click to show internal directories.
Click to hide internal directories.