(args []string)
| 101 | } |
| 102 | |
| 103 | func (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 | |
| 119 | func (c *commandCenter) processStop(args []string) { |
| 120 | for _, p := range c.cmd.processes { |
no test coverage detected