MCPcopy
hub / github.com/docker/docker-agent / ResolveCommand

Method ResolveCommand

pkg/app/app.go:437–439  ·  view source on GitHub ↗

ResolveCommand converts /command to its prompt text

(ctx context.Context, userInput string)

Source from the content-addressed store, hash-verified

435
436// ResolveCommand converts /command to its prompt text
437func (a *App) ResolveCommand(ctx context.Context, userInput string) string {
438 return runtime.ResolveCommand(ctx, a.runtime, userInput)
439}
440
441// LookupCommand parses userInput as a /command invocation and returns the
442// matching command, the trailing arguments, and whether a match was found.

Callers 2

ResolveInputMethod · 0.95
handleAgentCommandMethod · 0.80

Calls 1

ResolveCommandFunction · 0.92

Tested by

no test coverage detected