MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / callDirective

Method callDirective

internal/apps/app_cmd.go:344–353  ·  view source on GitHub ↗
(code string)

Source from the content-addressed store, hash-verified

342}
343
344func (this *AppCmd) callDirective(code string) {
345 for _, directive := range this.directives {
346 if directive.Arg == code {
347 if directive.Callback != nil {
348 directive.Callback()
349 }
350 return
351 }
352 }
353}

Callers 1

RunMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected