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

Method Run

cmd_status.go:14–30  ·  view source on GitHub ↗
(c *cli.Context)

Source from the content-addressed store, hash-verified

12type cmdStatusHandler struct{ dialer }
13
14func (h *cmdStatusHandler) Run(c *cli.Context) error {
15 if c.Args().Present() {
16 utils.Fatal("Status doesn't accept any arguments")
17 }
18
19 conn, err := h.Dial()
20 utils.FatalOnErr(err)
21
22 fmt.Fprintln(conn, "status")
23
24 utils.ScanLines(conn, func(b []byte) bool {
25 fmt.Fprintf(os.Stdout, "%s\n", b)
26 return true
27 })
28
29 return nil
30}

Callers

nothing calls this directly

Calls 4

FatalFunction · 0.92
FatalOnErrFunction · 0.92
ScanLinesFunction · 0.92
DialMethod · 0.80

Tested by

no test coverage detected