{"modulePath":"github.com/181192/ops-cli","version":"v0.1.20","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package executor\n\n## Types\n\n```go\ntype Executor interface {\n\tExec(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 []string) Executor\n```\nNewShellExecutor creates a new executor that runs commands\n\n```go\ntype FakeExecutor struct {\n\tmock.Mock\n}\n```\nFakeExecutor is a test double that records the arguments used for calling it\n\n```go\nfunc (e *FakeExecutor) Exec(command string, dir string, args ...string) error\n```\nExec records the arguments used to call it\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, dir string, args ...string) error\n```\nExec execute the command inside the directory with the specified args\n\n","path":"github.com/181192/ops-cli/pkg/git/executor","name":"executor","synopsis":"","isRedistributable":true}
