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

Interface Plugin

extension/platform/plugin.go:21–26  ·  view source on GitHub ↗

Plugin is the single contract a third-party / embedding integrator implements to extend lark-cli. Four methods, every one mandatory. Name must match the grammar ^[a-z0-9][a-z0-9-]*$. The "." character is forbidden so plugin-name + hookName namespacing never produces ambiguous joins. Capabilities m

Source from the content-addressed store, hash-verified

19// returned from Install honour the plugin's Capabilities.FailurePolicy
20// (fail-open warns + skips this plugin; fail-closed aborts the CLI).
21type Plugin interface {
22 Name() string
23 Version() string
24 Capabilities() Capabilities
25 Install(r Registrar) error
26}

Implementers 15

happyPlugininternal/platform/host_test.go
failClosedPlugininternal/platform/host_test.go
failOpenPlugininternal/platform/host_test.go
misconfiguredRestrictPlugininternal/platform/host_test.go
lyingRestrictPlugininternal/platform/host_test.go
panicInstallPlugininternal/platform/host_test.go
badNamePlugininternal/platform/host_test.go
duplicateHookPlugininternal/platform/host_test.go
restrictPlugininternal/platform/host_test.go
partiallyRegisterThenFailPlugininternal/platform/host_test.go
multiRestrictPlugininternal/platform/host_test.go
capVersionPlugininternal/platform/version_test.go

Calls

no outgoing calls

Tested by

no test coverage detected