MCPcopy Index your code
hub / github.com/cortesi/modd / NewExecutor

Function NewExecutor

shell/shell.go:53–63  ·  view source on GitHub ↗
(shell string, command string, dir string)

Source from the content-addressed store, hash-verified

51}
52
53func NewExecutor(shell string, command string, dir string) (*Executor, error) {
54 _, err := makeCommand(shell, command, dir)
55 if err != nil {
56 return nil, err
57 }
58 return &Executor{
59 Shell: shell,
60 Command: command,
61 Dir: dir,
62 }, nil
63}
64
65func (e *Executor) start(
66 log termlog.Stream, bufferr bool,

Callers 1

testCmdFunction · 0.85

Calls 1

makeCommandFunction · 0.85

Tested by 1

testCmdFunction · 0.68