MCPcopy Create free account
hub / github.com/gogs/gogs / ExecDir

Function ExecDir

internal/process/manager.go:74–76  ·  view source on GitHub ↗

Exec starts executing a shell command in given path, it tracks corresponding process and timeout.

(timeout time.Duration, dir, desc, cmdName string, args ...string)

Source from the content-addressed store, hash-verified

72
73// Exec starts executing a shell command in given path, it tracks corresponding process and timeout.
74func ExecDir(timeout time.Duration, dir, desc, cmdName string, args ...string) (string, string, error) {
75 return ExecDirEnv(timeout, dir, nil, desc, cmdName, args...)
76}
77
78// ExecDirEnv is the same as ExecDir but allows appending additional environment
79// variables to the child process. Pass nil for env to inherit the parent

Callers 8

MergeMethod · 0.92
testPatchMethod · 0.92
initRepoCommitFunction · 0.92
CreateRepositoryFunction · 0.92
GitGcReposFunction · 0.92
ForkRepositoryFunction · 0.92
ExecTimeoutFunction · 0.85
ExecFunction · 0.85

Calls 1

ExecDirEnvFunction · 0.85

Tested by

no test coverage detected