MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / checkCmd

Function checkCmd

agent/utils/compose/compose.go:21–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19)
20
21func checkCmd() error {
22 if global.CONF.DockerConfig.Command == "" {
23 dockerComposeCmd := common.GetDockerComposeCommand()
24 if dockerComposeCmd == "" {
25 return buserr.New("ErrDockerComposeCmdNotFound")
26 }
27 global.CONF.DockerConfig.Command = dockerComposeCmd
28 }
29 return nil
30}
31
32func getComposeBaseCmd() (string, []string) {
33 cmdStr := strings.TrimSpace(global.CONF.DockerConfig.Command)

Callers 7

UpFunction · 0.85
DownFunction · 0.85
StopFunction · 0.85
RestartFunction · 0.85
OperateFunction · 0.85
DownAndUpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected