Versions in this module Expand all Collapse all v2 v2.10.1 Aug 18, 2023 v2.9.0 Aug 18, 2023 Changes in this version + type Executor struct + func New() *Executor + func (exe *Executor) Exec(ctx context.Context, exePath string, args ...string) (int, error) + func (exe *Executor) ExecCommand(cmd *exec.Cmd) (int, error) + func (exe *Executor) ExecWithEnvs(ctx context.Context, exePath string, args, envs []string) (int, error) + func (exe *Executor) ExecWithEnvsAndGetCombinedOutput(ctx context.Context, exePath string, args, envs []string) (string, int, error) + func (exe *Executor) ExecXSys(exePath string, args ...string) error + func (exe *Executor) HdiutilAttach(ctx context.Context, dmgPath, mountPoint string) (int, error) + func (exe *Executor) HdiutilDetach(ctx context.Context, mountPath string) (int, error) + func (exe *Executor) UnarchivePkg(ctx context.Context, pkgFilePath, dest string) (int, error) + type Mock struct + Err error + ExitCode int + Output string + func (exe *Mock) Exec(ctx context.Context, exePath string, args ...string) (int, error) + func (exe *Mock) ExecWithEnvs(ctx context.Context, exePath string, args, envs []string) (int, error) + func (exe *Mock) ExecWithEnvsAndGetCombinedOutput(ctx context.Context, exePath string, args, envs []string) (string, int, error) + func (exe *Mock) ExecXSys(exePath string, args ...string) error + func (exe *Mock) HdiutilAttach(ctx context.Context, dmgPath, mountPoint string) (int, error) + func (exe *Mock) HdiutilDetach(ctx context.Context, mountPath string) (int, error) + func (exe *Mock) UnarchivePkg(ctx context.Context, pkgFilePath, dest string) (int, error)