MCPcopy
hub / github.com/syncthing/syncthing / cmd

Function cmd

script/next-version.go:122–129  ·  view source on GitHub ↗
(name string, args ...string)

Source from the content-addressed store, hash-verified

120}
121
122func cmd(name string, args ...string) (string, error) {
123 cmd := exec.Command(name, args...)
124 bs, err := cmd.CombinedOutput()
125 if err != nil {
126 return "", err
127 }
128 return strings.TrimSpace(string(bs)), nil
129}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected