MCPcopy Index your code
hub / github.com/DarthSim/overmind / processRestart

Method processRestart

start/command_center.go:103–117  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

101}
102
103func (c *commandCenter) processRestart(args []string) {
104 for _, p := range c.cmd.processes {
105 if len(args) == 0 {
106 p.Restart()
107 continue
108 }
109
110 for _, pattern := range args {
111 if utils.WildcardMatch(pattern, p.Name) {
112 p.Restart()
113 break
114 }
115 }
116 }
117}
118
119func (c *commandCenter) processStop(args []string) {
120 for _, p := range c.cmd.processes {

Callers 1

handleConnectionMethod · 0.95

Calls 2

WildcardMatchFunction · 0.92
RestartMethod · 0.80

Tested by

no test coverage detected