{"modulePath":"github.com/smartcontractkit/chainlink-testing-framework","version":"v1.35.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package osutil\n\n## Constants\n\n```go\nconst (\n\tDEFAULT_STOP_FILE_NAME         = \".root_dir\"\n\tErrStopFileNotFoundWithinLimit = \"stop file not found in any parent directory within search limit\"\n)\n```\n\n## Functions\n\n```go\nfunc ExecCmd(l zerolog.Logger, command string) error\n```\nExecCmd executes a command and logs the output\n\n```go\nfunc ExecCmdWithContext(ctx context.Context, l zerolog.Logger, command string) error\n```\nExecCmdWithContext executes a command with ctx and logs the output\n\n```go\nfunc ExecCmdWithOptions(ctx context.Context, l zerolog.Logger, command string, outputFunction func(string)) error\n```\nExecCmdWithOptions executes a command with ctx and logs the output with a custom logging func\n\n```go\nfunc FindDirectoriesContainingFile(dir string, r *regexp.Regexp) ([]string, error)\n```\nFindDirectoriesContainingFile finds all directories containing a file matching the given regular expression\n\n```go\nfunc FindFile(filename, stopFile string, limit int) (string, error)\n```\nFindFile looks for given file in the current directory and its parent directories first by locating top level parent folder where the search should begin (defined by stopFile, which cannot be located further \"up\" than limit parent folders) and then by searching from there for the file all subdirectories\n\n```go\nfunc GetAbsoluteFolderPath(folder string) (string, error)\n```\n\n```go\nfunc GetEnv(key string) (string, error)\n```\nGetEnv returns the value of the environment variable named by the key and sets the environment variable up to be used in the remote runner\n\n```go\nfunc SetupEnvVarsForRemoteRunner(envVars []string) error\n```\nSetupEnvVarsForRemoteRunner sets up the environment variables in the list to propagate to the remote runner\n\n","path":"github.com/smartcontractkit/chainlink-testing-framework/utils/osutil","name":"osutil","synopsis":"","isRedistributable":true}
