MCPcopy Create free account
hub / github.com/cloudwan/gohan / GetActionFromCommand

Method GetActionFromCommand

schema/schema.go:670–677  ·  view source on GitHub ↗

GetActionFromCommand gets action with given id

(command string)

Source from the content-addressed store, hash-verified

668
669// GetActionFromCommand gets action with given id
670func (schema *Schema) GetActionFromCommand(command string) *Action {
671 for _, action := range schema.Actions {
672 if action.ID == command {
673 return &action
674 }
675 }
676 return nil
677}

Callers 2

ExecuteCommandMethod · 0.80
schema_test.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected