shell

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2018 License: MIT Imports: 6 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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