MCPcopy
hub / github.com/git-lfs/git-lfs / Cmd

Struct Cmd

subprocess/cmd.go:11–15  ·  view source on GitHub ↗

Thin wrapper around exec.Cmd. Takes care of pipe shutdown by keeping an internal reference to any created pipes. Whenever Cmd.Wait() is called, all created pipes are closed.

Source from the content-addressed store, hash-verified

9// keeping an internal reference to any created pipes. Whenever
10// Cmd.Wait() is called, all created pipes are closed.
11type Cmd struct {
12 *exec.Cmd
13
14 pipes []io.Closer
15}
16
17func (c *Cmd) Run() error {
18 c.trace()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected