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

Method Run

start/handler.go:67–86  ·  view source on GitHub ↗

Run runs the start command

(c *cli.Context)

Source from the content-addressed store, hash-verified

65
66// Run runs the start command
67func (h *Handler) Run(c *cli.Context) error {
68 err := h.parseColors(c.String("colors"))
69 utils.FatalOnErr(err)
70
71 err = h.parseFormation(c.String("formation"))
72 utils.FatalOnErr(err)
73
74 err = h.parseStopSignals(c.String("stop-signals"))
75 utils.FatalOnErr(err)
76
77 cmd, err := newCommand(h)
78 utils.FatalOnErr(err)
79
80 exitCode, err := cmd.Run()
81 utils.FatalOnErr(err)
82
83 os.Exit(exitCode)
84
85 return nil
86}
87
88func (h *Handler) parseColors(colorsStr string) error {
89 if len(colorsStr) > 0 {

Callers 3

observeMethod · 0.45
ExitCodeMethod · 0.45
PaneExitCodeMethod · 0.45

Calls 5

parseColorsMethod · 0.95
parseFormationMethod · 0.95
parseStopSignalsMethod · 0.95
FatalOnErrFunction · 0.92
newCommandFunction · 0.85

Tested by

no test coverage detected