MCPcopy
hub / github.com/DarthSim/overmind / socketFlags

Function socketFlags

main.go:17–34  ·  view source on GitHub ↗
(s, n *string)

Source from the content-addressed store, hash-verified

15const version = "2.5.1"
16
17func socketFlags(s, n *string) []cli.Flag {
18 return []cli.Flag{
19 cli.StringFlag{
20 Name: "socket, s",
21 EnvVar: "OVERMIND_SOCKET",
22 Usage: "Path to overmind socket (in case of using unix socket) or address to bind (in other cases)",
23 Value: "./.overmind.sock",
24 Destination: s,
25 },
26 cli.StringFlag{
27 Name: "network, S",
28 EnvVar: "OVERMIND_NETWORK",
29 Usage: "Network to use for commands. Can be 'tcp', 'tcp4', 'tcp6' or 'unix'",
30 Value: "unix",
31 Destination: n,
32 },
33 }
34}
35
36func setupStartCmd() cli.Command {
37 c := start.Handler{}

Callers 8

setupStartCmdFunction · 0.85
setupRestartCmdFunction · 0.85
setupStopCmdFunction · 0.85
setupConnectCmdFunction · 0.85
setupQuitCmdFunction · 0.85
setupKillCmdFunction · 0.85
setupEchoCmdFunction · 0.85
setupStatusCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…