MCPcopy
hub / github.com/larksuite/cli / Wrap

Method Wrap

extension/platform/builder.go:101–110  ·  view source on GitHub ↗

Wrap registers a Wrapper. Multiple calls accumulate; the host composes them in registration order (outermost first).

(hookName string, sel Selector, wrap Wrapper)

Source from the content-addressed store, hash-verified

99// Wrap registers a Wrapper. Multiple calls accumulate; the host
100// composes them in registration order (outermost first).
101func (b *Builder) Wrap(hookName string, sel Selector, wrap Wrapper) *Builder {
102 if !b.validateHookName(hookName, "wrap") {
103 return b
104 }
105 n, s, w := hookName, sel, wrap
106 b.actions = append(b.actions, func(r Registrar) {
107 r.Wrap(n, s, w)
108 })
109 return b
110}
111
112// On registers a LifecycleHandler.
113func (b *Builder) On(event LifecycleEvent, hookName string, fn LifecycleHandler) *Builder {

Callers

nothing calls this directly

Calls 2

validateHookNameMethod · 0.95
WrapMethod · 0.65

Tested by

no test coverage detected