(existingCmds []string)
| 13 | } |
| 14 | |
| 15 | func 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 | } |
no outgoing calls
no test coverage detected