Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
ID CommandID
WelcomeMessage string
GoodbyeMessage string
ErrorAction Action
SuccessAction Action
Command string
Arguments []string
}
Command is a command descriptor
type ICommandRunner ¶
type ICommandRunner interface {
Run(command Command)
}
ICommandRunner is an interface of commands runner
type IOsDetector ¶
IOsDetector is an interface for Os detection system
type IRunner ¶
type IRunner interface {
Run(command Command)
}
IRunner is an interface of commands runner which runs commands
func NewBashRunner ¶
func NewBashRunner(userIO interactivity.IO) IRunner
NewBashRunner creates an instance of bashRunner
Click to show internal directories.
Click to hide internal directories.