Documentation
¶
Index ¶
- func Run(ctx context.Context, cmd *exec.Cmd, middlewares ...Middleware) error
- type Command
- func (c *Command) Args(args ...string) *Command
- func (c *Command) Dir(dir string) *Command
- func (c *Command) Env(env ...string) *Command
- func (c *Command) Middleware(mw ...Middleware) *Command
- func (c *Command) Run() error
- func (c *Command) Stderr(v io.Writer) *Command
- func (c *Command) Stdin(v io.Reader) *Command
- func (c *Command) Stdout(v io.Writer) *Command
- type Handler
- type Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (*Command) Middleware ¶
func (c *Command) Middleware(mw ...Middleware) *Command
type Middleware ¶
Click to show internal directories.
Click to hide internal directories.