MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / run

Function run

core/utils/controller/manager/common.go:22–27  ·  view source on GitHub ↗
(client *ssh.SSHClient, name string, args ...string)

Source from the content-addressed store, hash-verified

20}
21
22func run(client *ssh.SSHClient, name string, args ...string) (string, error) {
23 if client == nil {
24 return cmd.NewCommandMgr(cmd.WithTimeout(10*time.Second), cmd.WithEnv("LANGUAGE=en_US:en")).RunWithStdout(name, args...)
25 }
26 return client.Runf("LANGUAGE=en_US:en %s %s", name, strings.Join(args, " "))
27}

Callers 14

StatusMethod · 0.70
OperateMethod · 0.70
StatusMethod · 0.70
OperateMethod · 0.70
IsExistMethod · 0.70
IsActiveMethod · 0.70
IsEnableMethod · 0.70
OperateMethod · 0.70
IsActiveMethod · 0.70
IsEnableMethod · 0.70
IsExistMethod · 0.70
StatusMethod · 0.70

Calls 2

RunfMethod · 0.80
RunWithStdoutMethod · 0.45

Tested by

no test coverage detected