MCPcopy
hub / github.com/mislav/hub / Output

Method Output

cmd/cmd.go:40–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40func (cmd *Cmd) Output() (string, error) {
41 verboseLog(cmd)
42 c := exec.Command(cmd.Name, cmd.Args...)
43 c.Stderr = cmd.Stderr
44 output, err := c.Output()
45
46 return string(output), err
47}
48
49func (cmd *Cmd) CombinedOutput() (string, error) {
50 verboseLog(cmd)

Callers 15

VersionFunction · 0.80
DirFunction · 0.80
WorkdirNameFunction · 0.80
HasFileFunction · 0.80
EditorFunction · 0.80
SymbolicRefFunction · 0.80
SymbolicFullNameFunction · 0.80
RefFunction · 0.80
RefListFunction · 0.80
NewRangeFunction · 0.80
ShowFunction · 0.80
LogFunction · 0.80

Calls 1

verboseLogFunction · 0.85

Tested by

no test coverage detected