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

Struct badNamePlugin

internal/platform/host_test.go:234–234  ·  view source on GitHub ↗

Plugin with an invalid Name (contains "." or starts with a hyphen) must abort with invalid_plugin_name. The dot ban is critical -- the "{plugin}.{hook}" namespace join would become ambiguous if dots were allowed inside Plugin.Name().

Source from the content-addressed store, hash-verified

232// "{plugin}.{hook}" namespace join would become ambiguous if dots were
233// allowed inside Plugin.Name().
234type badNamePlugin struct{ n string }
235
236func (p badNamePlugin) Name() string { return p.n }
237func (p badNamePlugin) Version() string { return "1.0.0" }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected