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

Function Exec

internal/process/manager.go:134–136  ·  view source on GitHub ↗

Exec starts executing a shell command, it tracks corresponding its process and use default timeout.

(desc, cmdName string, args ...string)

Source from the content-addressed store, hash-verified

132
133// Exec starts executing a shell command, it tracks corresponding its process and use default timeout.
134func Exec(desc, cmdName string, args ...string) (string, string, error) {
135 return ExecDir(-1, "", desc, cmdName, args...)
136}
137
138// Kill kills and removes a process from global list.
139func Kill(pid int64) error {

Callers 4

openSSHVersionFunction · 0.92
NewRepoContextFunction · 0.92
SSHKeygenParsePublicKeyFunction · 0.92
addKeyFunction · 0.92

Calls 1

ExecDirFunction · 0.85

Tested by

no test coverage detected