MCPcopy Index your code
hub / github.com/jesseduffield/lazygit / runCommandWithOutput

Method runCommandWithOutput

pkg/integration/components/shell.go:57–59  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

55}
56
57func (self *Shell) runCommandWithOutput(args []string) (string, error) {
58 return self.runCommandWithOutputAndEnv(args, []string{})
59}
60
61func (self *Shell) runCommandWithOutputAndEnv(args []string, env []string) (string, error) {
62 cmd := exec.Command(args[0], args[1:]...)

Callers 3

RunCommandExpectErrorMethod · 0.95
expectMethod · 0.80
GetCommitHashMethod · 0.80

Calls 1

Tested by

no test coverage detected