Documentation ¶
Index ¶
- type CommandLine
- type Options
- type ShellCommand
- func (this *ShellCommand) GetOutputs() []string
- func (this *ShellCommand) Parse() error
- func (this *ShellCommand) Set(cmd string)
- func (this *ShellCommand) SetStdIn(reader io.Reader)
- func (this *ShellCommand) SetWriter(writer io.Writer)
- func (this *ShellCommand) Start() error
- func (this *ShellCommand) String() string
- func (this *ShellCommand) Wait() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandLine ¶
func NewCommandLine ¶
func NewCommandLine(s string) *CommandLine
func (*CommandLine) Parse ¶
func (this *CommandLine) Parse(s string)
func (*CommandLine) String ¶
func (this *CommandLine) String() string
type ShellCommand ¶
type ShellCommand struct { CommandStr string Commands []*CommandLine Options Options Description string Path string // contains filtered or unexported fields }
ShellCommand defines how to call a program
func New ¶
func New(useShell bool, cmd string, isExpect bool) *ShellCommand
New creates a ShellCommand
func (*ShellCommand) GetOutputs ¶
func (this *ShellCommand) GetOutputs() []string
func (*ShellCommand) Parse ¶
func (this *ShellCommand) Parse() error
func (*ShellCommand) Set ¶
func (this *ShellCommand) Set(cmd string)
func (*ShellCommand) SetStdIn ¶
func (this *ShellCommand) SetStdIn(reader io.Reader)
func (*ShellCommand) SetWriter ¶
func (this *ShellCommand) SetWriter(writer io.Writer)
func (*ShellCommand) String ¶
func (this *ShellCommand) String() string
func (*ShellCommand) Wait ¶
func (this *ShellCommand) Wait() error
Click to show internal directories.
Click to hide internal directories.