MCPcopy Index your code
hub / github.com/docker/docker-agent / commandExecutionMethodCall

Function commandExecutionMethodCall

lint/constructor_command_exec.go:92–104  ·  view source on GitHub ↗
(call *ast.CallExpr)

Source from the content-addressed store, hash-verified

90}
91
92func commandExecutionMethodCall(call *ast.CallExpr) (string, bool) {
93 sel, ok := call.Fun.(*ast.SelectorExpr)
94 if !ok {
95 return "", false
96 }
97 name := sel.Sel.Name
98 switch name {
99 case "Start", "Run", "Output", "CombinedOutput":
100 return name, true
101 default:
102 return "", false
103 }
104}
105
106// forEachConstructionCallExpr invokes fn for every call expression that runs as
107// part of executing body.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected