MCPcopy Index your code
hub / github.com/cloudfoundry/cli / NewCommandSuggester

Function NewCommandSuggester

cf/util/spellcheck/spellcheck.go:15–23  ·  view source on GitHub ↗
(existingCmds []string)

Source from the content-addressed store, hash-verified

13}
14
15func NewCommandSuggester(existingCmds []string) CommandSuggester {
16 model := fuzzy.NewModel()
17 model.SetThreshold(1)
18 model.SetDepth(1)
19
20 model.Train(existingCmds)
21
22 return CommandSuggester{model: model}
23}

Callers 3

suggestCommandsFunction · 0.92
SuggestMethod · 0.92
spellcheck_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected