MCPcopy
hub / github.com/x-motemen/gore / String

Method String

command_name.go:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7var commandAbbrReplacer = strings.NewReplacer("[", "", "]", "")
8
9func (s commandName) String() string {
10 return commandAbbrReplacer.Replace(string(s))
11}
12
13func (s commandName) matches(t string) bool {
14 prefix, rest, _ := strings.Cut(string(s), "[")

Callers 15

showNodeFunction · 0.80
TestAction_TypeFunction · 0.80
TestAction_DocFunction · 0.80
TestAction_ImportFunction · 0.80
TestAction_ClearFunction · 0.80
TestAction_HelpFunction · 0.80
TestAction_QuitFunction · 0.80
TestSessionEval_importFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestAction_TypeFunction · 0.64
TestAction_DocFunction · 0.64
TestAction_ImportFunction · 0.64
TestAction_ClearFunction · 0.64
TestAction_HelpFunction · 0.64
TestAction_QuitFunction · 0.64
TestSessionEval_importFunction · 0.64