MCPcopy Create free account
hub / github.com/encodeous/nylon / ExecSplit

Function ExecSplit

core/sys_utils.go:10–13  ·  view source on GitHub ↗
(logger *slog.Logger, command string)

Source from the content-addressed store, hash-verified

8)
9
10func ExecSplit(logger *slog.Logger, command string) error {
11 parts := strings.Split(command, " ")
12 return Exec(logger, parts[0], parts[1:]...)
13}
14
15func Exec(logger *slog.Logger, name string, arg ...string) error {
16 out, err := exec.Command(name, arg...).CombinedOutput()

Callers 2

initWireGuardMethod · 0.85
cleanupWireGuardMethod · 0.85

Calls 1

ExecFunction · 0.85

Tested by

no test coverage detected