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

Method Run

agent/utils/cmd/cmdx.go:96–99  ·  view source on GitHub ↗
(name string, arg ...string)

Source from the content-addressed store, hash-verified

94}
95
96func (c *CommandHelper) Run(name string, arg ...string) error {
97 _, err := c.run(name, arg...)
98 return err
99}
100
101func (c *CommandHelper) RunWithOptionalSudo(name string, arg ...string) error {
102 commandName, commandArgs := WrapWithOptionalSudo(name, arg...)

Callers 1

RunWithOptionalSudoMethod · 0.95

Calls 1

runMethod · 0.95

Tested by

no test coverage detected