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

Struct invocation

internal/hook/invocation.go:16–25  ·  view source on GitHub ↗

invocation is the framework-side concrete implementation of platform.Invocation. All setters are unexported so plugin code (which only sees the platform.Invocation interface) cannot mutate state.

Source from the content-addressed store, hash-verified

14// (which only sees the platform.Invocation interface) cannot mutate
15// state.
16type invocation struct {
17 cmd platform.CommandView
18 args []string
19 started time.Time
20 err error
21
22 denied bool
23 layer string
24 source string
25}
26
27// newInvocation copies args so the read-only platform.Invocation
28// contract holds at the slice level: a hook cannot mutate the args

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected