Documentation
¶
Index ¶
Constants ¶
View Source
const ( PacifyWithDummy = true PacifyWithFake = false )
Variables ¶
View Source
var ErrUnsupportedExecutor = errors.New("unsupported executor")
View Source
var ErrUseDummyExecutor = errors.New("using dummy executor")
Functions ¶
func New ¶
func New( advanced common.AdvancedConfig, knownBy clif.KnownByCollection, fm common.FileManager, dryRun bool, ) (common.ExecutionAgent, error)
func Pacify ¶
func Pacify( advanced common.AdvancedConfig, knownBy clif.KnownByCollection, fm common.FileManager, dummy bool, ) common.ExecutionAgent
Types ¶
type DummyExecutor ¶
type DummyExecutor struct {
Name string
}
func (*DummyExecutor) Execute ¶
func (e *DummyExecutor) Execute(args ...string) error
func (*DummyExecutor) Look ¶
func (e *DummyExecutor) Look() (string, error)
func (*DummyExecutor) ProgName ¶
func (e *DummyExecutor) ProgName() string
type ProgramExecutor ¶
type ProgramExecutor struct {
Name string
}
func (*ProgramExecutor) Execute ¶
func (e *ProgramExecutor) Execute(args ...string) error
func (*ProgramExecutor) Look ¶
func (e *ProgramExecutor) Look() (string, error)
func (*ProgramExecutor) ProgName ¶
func (e *ProgramExecutor) ProgName() string
Click to show internal directories.
Click to hide internal directories.