command

package
v1.1.1-0...-9418116 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCommand

type FakeCommand struct{}

FakeCommand is used for testing

func (*FakeCommand) Run

func (f *FakeCommand) Run(stdout io.Writer, stderr io.Writer, stdin io.Reader) error

Run implements interface

type Interface

type Interface interface {
	Run(stdout io.Writer, stderr io.Writer, stdin io.Reader) error
}

Interface is the command interface

type StreamCommand

type StreamCommand struct {
	// contains filtered or unexported fields
}

StreamCommand is the a command whose output is streamed to a log

func NewStreamCommand

func NewStreamCommand(command string, args []string) *StreamCommand

NewStreamCommand creates a new stram command

func (*StreamCommand) Run

func (s *StreamCommand) Run(stdout io.Writer, stderr io.Writer, stdin io.Reader) error

Run runs a stream command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL