Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandExecutor ¶
type CommandExecutor interface {
ExecuteCommand(ctx context.Context, name string, args ...string) (string, error)
GetConfig() *config.Config
}
CommandExecutor defines an interface for executing commands
type DefaultExecutor ¶
type DefaultExecutor struct {
// contains filtered or unexported fields
}
DefaultExecutor is the real command executor
func New ¶
func New(cfg *config.Config) *DefaultExecutor
func (*DefaultExecutor) ExecuteCommand ¶
func (*DefaultExecutor) GetConfig ¶
func (e *DefaultExecutor) GetConfig() *config.Config
Click to show internal directories.
Click to hide internal directories.