Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DryRun = false
DryRun set dryrun mode. Commands will be printed and not run
Functions ¶
This section is empty.
Types ¶
type SessionInterface ¶
type SessionInterface interface {
Command(name string, arg ...string) SessionInterface
SetInput(s string) SessionInterface
SetDir(s string) SessionInterface
SetEnv(key, value string) SessionInterface
SetPath(path string) SessionInterface
Run() error
Output() ([]byte, error)
PrintOutput() error
New() SessionInterface
}
var MainInterface SessionInterface = new(session)
func Command ¶
func Command(name string, arg ...string) SessionInterface
Command creates a new session and sets up the command with the proper arguments
func New ¶
func New() SessionInterface
func Session ¶
func Session() SessionInterface
Click to show internal directories.
Click to hide internal directories.