{"modulePath":"github.com/unitytech/client-go","version":"v11.0.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package exec\n\n## Types\n\n```go\ntype CodeExitError struct {\n\tErr  error\n\tCode int\n}\n```\nCodeExitError is an implementation of ExitError consisting of an error object and an exit code (the upper bits of os.exec.ExitStatus).\n\n```go\nfunc (e CodeExitError) Error() string\n```\n\n```go\nfunc (e CodeExitError) ExitStatus() int\n```\n\n```go\nfunc (e CodeExitError) Exited() bool\n```\n\n```go\nfunc (e CodeExitError) String() string\n```\n\n```go\ntype ExitError interface {\n\tString() string\n\tError() string\n\tExited() bool\n\tExitStatus() int\n}\n```\nExitError is an interface that presents an API similar to os.ProcessState, which is what ExitError from os/exec is.  This is designed to make testing a bit easier and probably loses some of the cross-platform properties of the underlying library.\n\n","path":"github.com/unitytech/client-go/util/exec","name":"exec","synopsis":"","isRedistributable":true}
