MCPcopy
hub / github.com/rclone/rclone / mapper

Function mapper

lib/transform/transform.go:395–402  ·  view source on GitHub ↗
(s string, command string)

Source from the content-addressed store, hash-verified

393}
394
395func mapper(s string, command string) (string, error) {
396 out, err := exec.Command(command, s).CombinedOutput()
397 if err != nil {
398 out = bytes.TrimSpace(out)
399 return s, fmt.Errorf("%s: error running command %q: %v", out, command+" "+s, err)
400 }
401 return string(bytes.TrimSpace(out)), nil
402}

Callers 1

transformPathSegmentFunction · 0.85

Calls 2

CommandMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…