MCPcopy Create free account
hub / github.com/DarthSim/hivemind / Run

Method Run

process.go:59–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func (p *process) Run() {
60 p.output.PipeOutput(p)
61 defer p.output.ClosePipe(p)
62
63 ensureKill(p)
64
65 p.writeLine([]byte("\033[1mRunning...\033[0m"))
66
67 if err := p.Cmd.Run(); err != nil {
68 p.writeErr(err)
69 } else {
70 p.writeLine([]byte("\033[1mProcess exited\033[0m"))
71 }
72}
73
74func (p *process) Interrupt() {
75 if p.Running() {

Callers 1

mainFunction · 0.45

Calls 5

writeLineMethod · 0.95
writeErrMethod · 0.95
PipeOutputMethod · 0.80
ClosePipeMethod · 0.80
ensureKillFunction · 0.70

Tested by

no test coverage detected