MCPcopy
hub / github.com/mislav/hub / Success

Method Success

cmd/cmd.go:56–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56func (cmd *Cmd) Success() bool {
57 verboseLog(cmd)
58 err := exec.Command(cmd.Name, cmd.Args...).Run()
59 return err == nil
60}
61
62// Run runs command with `Exec` on platforms except Windows
63// which only supports `Spawn`

Callers 3

IsAncestorMethod · 0.80
QuietFunction · 0.80
IsGitDirFunction · 0.80

Calls 2

verboseLogFunction · 0.85
RunMethod · 0.80

Tested by

no test coverage detected