{"modulePath":"github.com/weaveworks/eksctl","version":"v0.233.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package executor\n\n## Types\n\n```go\ntype EnvVars map[string]string\n```\n\n```go\ntype Executor interface {\n\tExec(command string, args ...string) error\n\tExecWithOut(command string, args ...string) ([]byte, error)\n\tExecInDir(command string, dir string, args ...string) error\n}\n```\nExecutor executes commands shelling out and binding the stdout and stderr to the os ones\n\n```go\nfunc NewShellExecutor(envVars EnvVars) Executor\n```\nNewShellExecutor creates a new executor that runs commands\n\n```go\ntype ShellExecutor struct {\n\t// contains filtered or unexported fields\n}\n```\nShellExecutor an executor that shells out to run commands\n\n```go\nfunc (e ShellExecutor) Exec(command string, args ...string) error\n```\nExec execute the command with the specified args\n\n```go\nfunc (e ShellExecutor) ExecInDir(command string, dir string, args ...string) error\n```\nExecInDir executes the command inside the directory with the specified args\n\n```go\nfunc (e ShellExecutor) ExecWithOut(command string, args ...string) ([]byte, error)\n```\nExecWithOut executes the command with the specified args and returns the output\n\n","path":"github.com/weaveworks/eksctl/pkg/executor","name":"executor","synopsis":"","isRedistributable":true}
