Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetExecutor ¶
func SetExecutor(e ExecInterface)
Types ¶
type ExecInterface ¶
type ExecInterface interface {
// CommandContext runs command
CommandContext(ctx context.Context, cmd string) (string, error)
}
ExecInterface is an interface of os/exec API.
func GetExecutor ¶
func GetExecutor() ExecInterface
Click to show internal directories.
Click to hide internal directories.