Documentation
      ¶
    
    
  
    
  
    Index ¶
- type MockShell
 - func (sh *MockShell) AsyncStdout(asyncError chan error, name string, arg ...string) (*bufio.Reader, error)
 - func (sh *MockShell) CombinedOutput(name string, arg ...string) (string, error)
 - func (sh *MockShell) HomeDir() string
 - func (sh *MockShell) LastFullCommand() string
 - func (sh *MockShell) Path() string
 - func (sh *MockShell) WaitForCharacter(charToWaitFor byte, outputReader *bufio.Reader, timeout time.Duration) (string, error)
 
- type Shell
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockShell ¶
type MockShell struct {
	LastNameCalled string
	LastArgsCalled []string
	OutputToReturn []string
	ErrorToReturn  error
}
    func (*MockShell) AsyncStdout ¶
func (*MockShell) CombinedOutput ¶
func (*MockShell) LastFullCommand ¶
type Shell ¶
type Shell interface {
	CombinedOutput(name string, arg ...string) (string, error)
	AsyncStdout(potentialErrorFromAsyncProcess chan error, name string, arg ...string) (*bufio.Reader, error)
	WaitForCharacter(charToWaitFor byte, output *bufio.Reader, timeout time.Duration) (string, error)
	HomeDir() string
	Path() string
}
    func NewUnixShell ¶
func NewUnixShell() Shell
 Click to show internal directories. 
   Click to hide internal directories.