MCPcopy Create free account
hub / github.com/codnect/procyon / WithName

Function WithName

component/definition.go:144–149  ·  view source on GitHub ↗

WithName sets the name of the component definition.

(name string)

Source from the content-addressed store, hash-verified

142
143// WithName sets the name of the component definition.
144func WithName(name string) DefinitionOption {
145 return func(def *Definition) error {
146 def.name = name
147 return nil
148 }
149}
150
151// WithScope sets a custom scope string for the component definition.
152func WithScope(scope string) DefinitionOption {

Callers 5

TestRegisterFunction · 0.85
TestMakeDefinitionFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestRegisterFunction · 0.68
TestMakeDefinitionFunction · 0.68