Versions in this module Expand all Collapse all v0 v0.3.0 Nov 14, 2023 Changes in this version + type CommandExecutor struct + func (ce CommandExecutor) ExecuteCommand(ctx context.Context, actionName string, command string, arg ...string) error + func (ce CommandExecutor) ExecuteCommandWithOutput(ctx context.Context, actionName string, command string, arg ...string) (string, error) + func (ce CommandExecutor) ExecuteCommandWithOutputByte(ctx context.Context, actionName string, command string, arg ...string) ([]byte, error) + func (ce CommandExecutor) SetEnv(e []string) + type Executor interface + ExecuteCommand func(ctx context.Context, actionName string, command string, arg ...string) error + ExecuteCommandWithOutput func(ctx context.Context, actionName string, command string, arg ...string) (string, error) + ExecuteCommandWithOutputByte func(ctx context.Context, actionName string, command string, arg ...string) ([]byte, error) + SetEnv func([]string) + func NewCommandExecutor(logger *zap.Logger, pkg string) Executor