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

Function getComposeBaseCmd

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

Source from the content-addressed store, hash-verified

30}
31
32func getComposeBaseCmd() (string, []string) {
33 cmdStr := strings.TrimSpace(global.CONF.DockerConfig.Command)
34 parts := strings.Fields(cmdStr)
35 if len(parts) == 0 {
36 return "", nil
37 }
38 return parts[0], parts[1:]
39}
40
41func Up(filePath string) (string, error) {
42 if err := checkCmd(); err != nil {

Callers 8

UpFunction · 0.85
UpWithTaskFunction · 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